2016-08-15 10:24:56 -04:00
|
|
|
<?php
|
2025-06-30 09:04:05 -04:00
|
|
|
|
2016-08-15 10:24:56 -04:00
|
|
|
/**
|
2024-05-10 09:09:14 -04:00
|
|
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2016-08-15 10:24:56 -04:00
|
|
|
*/
|
|
|
|
|
|
2019-09-17 10:33:27 -04:00
|
|
|
namespace OCA\Settings\Tests\AppInfo;
|
2016-08-15 10:24:56 -04:00
|
|
|
|
|
|
|
|
use OC\Settings\Section;
|
|
|
|
|
use Test\TestCase;
|
|
|
|
|
|
|
|
|
|
class SectionTest extends TestCase {
|
2024-09-15 16:32:31 -04:00
|
|
|
public function testGetID(): void {
|
2016-08-15 10:24:56 -04:00
|
|
|
$this->assertSame('ldap', (new Section('ldap', 'name', 1))->getID());
|
|
|
|
|
}
|
2024-09-15 16:32:31 -04:00
|
|
|
public function testGetName(): void {
|
2016-08-15 10:24:56 -04:00
|
|
|
$this->assertSame('name', (new Section('ldap', 'name', 1))->getName());
|
|
|
|
|
}
|
2024-09-15 16:32:31 -04:00
|
|
|
public function testGetPriority(): void {
|
2016-08-15 10:24:56 -04:00
|
|
|
$this->assertSame(1, (new Section('ldap', 'name', 1))->getPriority());
|
|
|
|
|
}
|
|
|
|
|
}
|