summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Settings/ManagerTest.php30
1 files changed, 2 insertions, 28 deletions
diff --git a/tests/lib/Settings/ManagerTest.php b/tests/lib/Settings/ManagerTest.php
index 761f5f9a5c1..2ba3b2e7b57 100644
--- a/tests/lib/Settings/ManagerTest.php
+++ b/tests/lib/Settings/ManagerTest.php
@@ -116,18 +116,7 @@ class ManagerTest extends TestCase {
$this->manager->registerSection('personal', \OCA\WorkflowEngine\Settings\Section::class);
- $this->url->expects($this->exactly(3))
- ->method('imagePath')
- ->willReturnMap([
- ['core', 'actions/user.svg', '1'],
- ['settings', 'password.svg', '2'],
- ['core', 'clients/phone.svg', '3'],
- ]);
-
$this->assertEquals([
- 0 => [new Section('personal-info', 'Personal info', 0, '1')],
- 5 => [new Section('security', 'Security', 0, '2')],
- 15 => [new Section('sync-clients', 'Mobile & desktop', 0, '3')],
55 => [\OC::$server->query(\OCA\WorkflowEngine\Settings\Section::class)],
], $this->manager->getPersonalSections());
}
@@ -175,19 +164,7 @@ class ManagerTest extends TestCase {
->method('t')
->will($this->returnArgument(0));
- $this->url->expects($this->exactly(3))
- ->method('imagePath')
- ->willReturnMap([
- ['core', 'actions/user.svg', '1'],
- ['settings', 'password.svg', '2'],
- ['core', 'clients/phone.svg', '3'],
- ]);
-
- $this->assertArraySubset([
- 0 => [new Section('personal-info', 'Personal info', 0, '1')],
- 5 => [new Section('security', 'Security', 0, '2')],
- 15 => [new Section('sync-clients', 'Mobile & desktop', 0, '3')],
- ], $this->manager->getPersonalSections());
+ $this->assertEquals([], $this->manager->getPersonalSections());
}
public function testGetAdminSettings() {
@@ -276,7 +253,7 @@ class ManagerTest extends TestCase {
$this->manager->registerSection('personal', \OCA\WorkflowEngine\Settings\Section::class);
$this->manager->registerSection('admin', \OCA\WorkflowEngine\Settings\Section::class);
- $this->url->expects($this->exactly(9))
+ $this->url->expects($this->exactly(6))
->method('imagePath')
->willReturnMap([
['core', 'actions/user.svg', '1'],
@@ -291,9 +268,6 @@ class ManagerTest extends TestCase {
]);
$this->assertEquals([
- 0 => [new Section('personal-info', 'Personal info', 0, '1')],
- 5 => [new Section('security', 'Security', 0, '2')],
- 15 => [new Section('sync-clients', 'Mobile & desktop', 0, '3')],
55 => [\OC::$server->query(\OCA\WorkflowEngine\Settings\Section::class)],
], $this->manager->getPersonalSections());