SectionTest.php 605 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OCA\Settings\Tests\AppInfo;
  7. use OC\Settings\Section;
  8. use Test\TestCase;
  9. class SectionTest extends TestCase {
  10. public function testGetID(): void {
  11. $this->assertSame('ldap', (new Section('ldap', 'name', 1))->getID());
  12. }
  13. public function testGetName(): void {
  14. $this->assertSame('name', (new Section('ldap', 'name', 1))->getName());
  15. }
  16. public function testGetPriority(): void {
  17. $this->assertSame(1, (new Section('ldap', 'name', 1))->getPriority());
  18. }
  19. }