]> git.agnieray.net Git - galette.git/commitdiff
Deprecated call
authorJohan Cwiklinski <johan@x-tnd.be>
Sat, 13 Jan 2024 15:01:28 +0000 (16:01 +0100)
committerJohan Cwiklinski <johan@x-tnd.be>
Sun, 14 Jan 2024 09:16:36 +0000 (10:16 +0100)
tests/Galette/Core/tests/units/Login.php

index 61fbbb762704d52751a5708c987ec32287783c0a..0aabf8617723ad6feed7e8f1da6331659f34a85f 100644 (file)
@@ -160,12 +160,10 @@ class Login extends GaletteTestCase
             ->getMock();
 
         $zdb->method('execute')
-            ->will(
-                $this->returnCallback(
-                    function ($o) {
-                        throw new \LogicException('Error executing query!', 123);
-                    }
-                )
+            ->willReturnCallback(
+                function ($o) {
+                    throw new \LogicException('Error executing query!', 123);
+                }
             );
 
         $login = $this->getMockBuilder(\Galette\Core\Login::class)