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.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/lib/Settings/ManagerTest.php b/tests/lib/Settings/ManagerTest.php
index 4128e33aef1..2b2b2250695 100644
--- a/tests/lib/Settings/ManagerTest.php
+++ b/tests/lib/Settings/ManagerTest.php
@@ -244,15 +244,24 @@ class ManagerTest extends TestCase {
$section->expects($this->once())
->method('getPriority')
->willReturn(16);
- $this->container->expects($this->once())
+ $section2 = $this->createMock(Security\Authtokens::class);
+ $section2->expects($this->once())
+ ->method('getPriority')
+ ->willReturn(100);
+ $this->container->expects($this->at(0))
->method('query')
->with(Security::class)
->willReturn($section);
+ $this->container->expects($this->at(1))
+ ->method('query')
+ ->with(Security\Authtokens::class)
+ ->willReturn($section2);
$settings = $this->manager->getPersonalSettings('security');
$this->assertEquals([
- 16 => [$section]
+ 16 => [$section],
+ 100 => [$section2],
], $settings);
}