From 17adcb5483840f867f98f8d8df3426c7586c3294 Mon Sep 17 00:00:00 2001 From: nupplaPhil Date: Tue, 7 Jan 2020 00:57:30 +0100 Subject: [PATCH] Rename mock-methods --- tests/src/Console/LockConsoleTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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();