Rename mock-methods

This commit is contained in:
Philipp Holzer 2020-01-07 00:57:30 +01:00
parent 31457b8566
commit 17adcb5483
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90

View 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();