diff options
Diffstat (limited to 'tests/lib/User')
-rw-r--r-- | tests/lib/User/ManagerTest.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/lib/User/ManagerTest.php b/tests/lib/User/ManagerTest.php index e0b6aadf2ac..284f7b173bc 100644 --- a/tests/lib/User/ManagerTest.php +++ b/tests/lib/User/ManagerTest.php @@ -8,6 +8,7 @@ */ namespace Test\User; +use OC\AllConfig; use OC\User\Database; use OC\User\Manager; use OCP\IConfig; @@ -670,12 +671,12 @@ class ManagerTest extends TestCase { } public function testGetByEmail() { - $config = $this->getMockBuilder(IConfig::class) + $config = $this->getMockBuilder(AllConfig::class) ->disableOriginalConstructor() ->getMock(); $config ->expects($this->at(0)) - ->method('getUsersForUserValue') + ->method('getUsersForUserValueCaseInsensitive') ->with('settings', 'email', 'test@example.com') ->will($this->returnValue(['uid1', 'uid99', 'uid2'])); |