You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nextcloud-server/tests/lib/Settings/SectionTest.php

24 lines
606 B

10 years ago
<?php
10 years ago
/**
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
10 years ago
*/
namespace OCA\Settings\Tests\AppInfo;
10 years ago
use OC\Settings\Section;
use Test\TestCase;
class SectionTest extends TestCase {
public function testGetID(): void {
10 years ago
$this->assertSame('ldap', (new Section('ldap', 'name', 1))->getID());
}
public function testGetName(): void {
10 years ago
$this->assertSame('name', (new Section('ldap', 'name', 1))->getName());
}
public function testGetPriority(): void {
10 years ago
$this->assertSame(1, (new Section('ldap', 'name', 1))->getPriority());
}
}