From: nupplaPhil Date: Mon, 6 Jan 2020 23:57:30 +0000 (+0100) Subject: Rename mock-methods X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=17adcb5483840f867f98f8d8df3426c7586c3294;p=friendica.git Rename mock-methods --- diff --git a/tests/src/Console/LockConsoleTest.php b/tests/src/Console/LockConsoleTest.php index 51c05b5c37..dddc9daff1 100644 --- a/tests/src/Console/LockConsoleTest.php +++ b/tests/src/Console/LockConsoleTest.php @@ -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();