]> git.mxchange.org Git - friendica.git/commitdiff
Rename mock-methods
authornupplaPhil <admin@philipp.info>
Mon, 6 Jan 2020 23:57:30 +0000 (00:57 +0100)
committernupplaPhil <admin@philipp.info>
Mon, 6 Jan 2020 23:57:30 +0000 (00:57 +0100)
tests/src/Console/LockConsoleTest.php

index 51c05b5c373b0affe3de0a835a3219a35fc44e35..dddc9daff1124c690f41d447668c81672c674e7b 100644 (file)
@@ -68,7 +68,7 @@ class LockConsoleTest extends ConsoleTest
        public function testDelLock()
        {
                $this->lockMock
-                       ->shouldReceive('releaseLock')
+                       ->shouldReceive('release')
                        ->with('test', true)
                        ->andReturn(true)
                        ->once();
@@ -83,7 +83,7 @@ class LockConsoleTest extends ConsoleTest
        public function testDelUnknownLock()
        {
                $this->lockMock
-                       ->shouldReceive('releaseLock')
+                       ->shouldReceive('release')
                        ->with('test', true)
                        ->andReturn(false)
                        ->once();
@@ -103,7 +103,7 @@ class LockConsoleTest extends ConsoleTest
                        ->andReturn(false)
                        ->once();
                $this->lockMock
-                       ->shouldReceive('acquireLock')
+                       ->shouldReceive('acquire')
                        ->with('test')
                        ->andReturn(true)
                        ->once();
@@ -138,7 +138,7 @@ class LockConsoleTest extends ConsoleTest
                        ->andReturn(false)
                        ->once();
                $this->lockMock
-                       ->shouldReceive('acquireLock')
+                       ->shouldReceive('acquire')
                        ->with('test')
                        ->andReturn(false)
                        ->once();