diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-04-04 11:57:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-04 11:57:43 +0200 |
commit | e0227cb4588a343db9eadfefc2733660877fb60d (patch) | |
tree | f5407b1201cbd2b23e230b6e16e6d4c74ae1cfc7 /tests/lib/Settings | |
parent | da178db98edf54088cb94391088a53257f682b5d (diff) | |
parent | aee2d6318fef503528c94947596bafeb43594ed3 (diff) | |
download | nextcloud-server-e0227cb4588a343db9eadfefc2733660877fb60d.tar.gz nextcloud-server-e0227cb4588a343db9eadfefc2733660877fb60d.zip |
Merge pull request #2095 from nextcloud/bruteforcesetttings
Introduce bruteforce settings
Diffstat (limited to 'tests/lib/Settings')
-rw-r--r-- | tests/lib/Settings/ManagerTest.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/lib/Settings/ManagerTest.php b/tests/lib/Settings/ManagerTest.php index 2122c8b3750..497a0df9f4e 100644 --- a/tests/lib/Settings/ManagerTest.php +++ b/tests/lib/Settings/ManagerTest.php @@ -146,7 +146,7 @@ class ManagerTest extends TestCase { ['class' => \OCA\WorkflowEngine\Settings\Section::class, 'priority' => 90] ])); - $this->url->expects($this->exactly(5)) + $this->url->expects($this->exactly(6)) ->method('imagePath') ->willReturnMap([ ['settings', 'admin.svg', '1'], @@ -159,6 +159,7 @@ class ManagerTest extends TestCase { $this->assertEquals([ 0 => [new Section('server', 'Server settings', 0, '1')], 5 => [new Section('sharing', 'Sharing', 0, '2')], + 10 => [new Section('security', 'Security', 0, '3')], 45 => [new Section('encryption', 'Encryption', 0, '3')], 90 => [\OC::$server->query(\OCA\WorkflowEngine\Settings\Section::class)], 98 => [new Section('additional', 'Additional settings', 0, '4')], @@ -177,7 +178,7 @@ class ManagerTest extends TestCase { ->will($this->returnValue([ ])); - $this->url->expects($this->exactly(5)) + $this->url->expects($this->exactly(6)) ->method('imagePath') ->willReturnMap([ ['settings', 'admin.svg', '1'], @@ -190,6 +191,7 @@ class ManagerTest extends TestCase { $this->assertEquals([ 0 => [new Section('server', 'Server 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')], |