take out additional (legacy) settings section from tests

because it is dependent whether anything else registers into it and
\OC_App is static

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2017-06-23 14:34:55 +02:00
parent 39ca06e6b9
commit 8750d5b802
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
1 changed files with 1 additions and 2 deletions

View File

@ -232,12 +232,11 @@ class ManagerTest extends TestCase {
['core', 'actions/settings-dark.svg', '4'], ['core', 'actions/settings-dark.svg', '4'],
]); ]);
$this->assertEquals([ $this->assertArraySubset([
0 => [new Section('personal-info', 'Personal info', 0, '1')], 0 => [new Section('personal-info', 'Personal info', 0, '1')],
5 => [new Section('security', 'Security', 0, '2')], 5 => [new Section('security', 'Security', 0, '2')],
15 => [new Section('sync-clients', 'Sync clients', 0, '3')], 15 => [new Section('sync-clients', 'Sync clients', 0, '3')],
90 => [\OC::$server->query(\OCA\WorkflowEngine\Settings\Section::class)], 90 => [\OC::$server->query(\OCA\WorkflowEngine\Settings\Section::class)],
98 => [new Section('additional', 'Additional settings', 0, '4')],
], $this->manager->getPersonalSections()); ], $this->manager->getPersonalSections());
} }