summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2017-06-23 22:19:18 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2017-06-23 22:19:18 +0200
commitb6b19346b4c5583677545b4b9a6c83ac3fce1b56 (patch)
treef96233068050c7457c1cdf762412a4e18bab07c5 /tests
parent8750d5b80225d3a7e341db8594b0f54db2f7b5eb (diff)
downloadnextcloud-server-b6b19346b4c5583677545b4b9a6c83ac3fce1b56.tar.gz
nextcloud-server-b6b19346b4c5583677545b4b9a6c83ac3fce1b56.zip
forgotten test adjustments
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Settings/ManagerTest.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/lib/Settings/ManagerTest.php b/tests/lib/Settings/ManagerTest.php
index 0c66bf19e8a..6a13b737c8e 100644
--- a/tests/lib/Settings/ManagerTest.php
+++ b/tests/lib/Settings/ManagerTest.php
@@ -223,13 +223,12 @@ class ManagerTest extends TestCase {
['class' => \OCA\WorkflowEngine\Settings\Section::class, 'priority' => 90]
]));
- $this->url->expects($this->exactly(4))
+ $this->url->expects($this->exactly(3))
->method('imagePath')
->willReturnMap([
['core', 'actions/info.svg', '1'],
['settings', 'password.svg', '2'],
['settings', 'change.svg', '3'],
- ['core', 'actions/settings-dark.svg', '4'],
]);
$this->assertArraySubset([
@@ -281,20 +280,18 @@ class ManagerTest extends TestCase {
->method('getPersonalSectionsFromDB')
->will($this->returnValue([]));
- $this->url->expects($this->exactly(4))
+ $this->url->expects($this->exactly(3))
->method('imagePath')
->willReturnMap([
['core', 'actions/info.svg', '1'],
['settings', 'password.svg', '2'],
['settings', 'change.svg', '3'],
- ['core', 'actions/settings-dark.svg', '4'],
]);
- $this->assertEquals([
+ $this->assertArraySubset([
0 => [new Section('personal-info', 'Personal info', 0, '1')],
5 => [new Section('security', 'Security', 0, '2')],
15 => [new Section('sync-clients', 'Sync clients', 0, '3')],
- 98 => [new Section('additional', 'Additional settings', 0, '4')],
], $this->manager->getPersonalSections());
}