summaryrefslogtreecommitdiffstats
path: root/tests/lib/Settings/ManagerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Settings/ManagerTest.php')
-rw-r--r--tests/lib/Settings/ManagerTest.php30
1 files changed, 16 insertions, 14 deletions
diff --git a/tests/lib/Settings/ManagerTest.php b/tests/lib/Settings/ManagerTest.php
index b218a347e85..d51a57598b3 100644
--- a/tests/lib/Settings/ManagerTest.php
+++ b/tests/lib/Settings/ManagerTest.php
@@ -115,24 +115,25 @@ class ManagerTest extends TestCase {
$this->manager->registerSection('admin', \OCA\WorkflowEngine\Settings\Section::class);
- $this->url->expects($this->exactly(6))
+ $this->url->expects($this->exactly(7))
->method('imagePath')
->willReturnMap([
- ['settings', 'admin.svg', '1'],
+ ['settings', 'admin.svg', '0'],
+ ['core', 'actions/settings-dark.svg', '1'],
['core', 'actions/share.svg', '2'],
['core', 'actions/password.svg', '3'],
- ['core', 'actions/settings-dark.svg', '4'],
- ['settings', 'help.svg', '5'],
+ ['settings', 'help.svg', '4'],
]);
$this->assertEquals([
- 0 => [new Section('server', 'Basic settings', 0, '1')],
+ 0 => [new Section('overview', 'Overview', 0, '0')],
+ 1 => [new Section('server', 'Basic settings', 0, '1')],
5 => [new Section('sharing', 'Sharing', 0, '2')],
10 => [new Section('security', 'Security', 0, '3')],
45 => [new Section('encryption', 'Encryption', 0, '3')],
55 => [\OC::$server->query(\OCA\WorkflowEngine\Settings\Section::class)],
- 98 => [new Section('additional', 'Additional settings', 0, '4')],
- 99 => [new Section('tips-tricks', 'Tips & tricks', 0, '5')],
+ 98 => [new Section('additional', 'Additional settings', 0, '1')],
+ 99 => [new Section('tips-tricks', 'Tips & tricks', 0, '4')],
], $this->manager->getAdminSections());
}
@@ -166,23 +167,24 @@ class ManagerTest extends TestCase {
->method('t')
->will($this->returnArgument(0));
- $this->url->expects($this->exactly(6))
+ $this->url->expects($this->exactly(7))
->method('imagePath')
->willReturnMap([
- ['settings', 'admin.svg', '1'],
+ ['settings', 'admin.svg', '0'],
+ ['core', 'actions/settings-dark.svg', '1'],
['core', 'actions/share.svg', '2'],
['core', 'actions/password.svg', '3'],
- ['core', 'actions/settings-dark.svg', '4'],
- ['settings', 'help.svg', '5'],
+ ['settings', 'help.svg', '4'],
]);
$this->assertEquals([
- 0 => [new Section('server', 'Basic settings', 0, '1')],
+ 0 => [new Section('overview', 'Overview', 0, '0')],
+ 1 => [new Section('server', 'Basic settings', 0, '1')],
5 => [new Section('sharing', 'Sharing', 0, '2')],
10 => [new Section('security', 'Security', 0, '3')],
45 => [new Section('encryption', 'Encryption', 0, '3')],
- 98 => [new Section('additional', 'Additional settings', 0, '4')],
- 99 => [new Section('tips-tricks', 'Tips & tricks', 0, '5')],
+ 98 => [new Section('additional', 'Additional settings', 0, '1')],
+ 99 => [new Section('tips-tricks', 'Tips & tricks', 0, '4')],
], $this->manager->getAdminSections());
}