diff options
Diffstat (limited to 'tests/lib/Settings/SectionTest.php')
-rw-r--r-- | tests/lib/Settings/SectionTest.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/lib/Settings/SectionTest.php b/tests/lib/Settings/SectionTest.php new file mode 100644 index 00000000000..ecd654ba748 --- /dev/null +++ b/tests/lib/Settings/SectionTest.php @@ -0,0 +1,23 @@ +<?php + +/** + * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + +namespace OCA\Settings\Tests\AppInfo; + +use OC\Settings\Section; +use Test\TestCase; + +class SectionTest extends TestCase { + public function testGetID(): void { + $this->assertSame('ldap', (new Section('ldap', 'name', 1))->getID()); + } + public function testGetName(): void { + $this->assertSame('name', (new Section('ldap', 'name', 1))->getName()); + } + public function testGetPriority(): void { + $this->assertSame(1, (new Section('ldap', 'name', 1))->getPriority()); + } +} |