Rename mock-methods
This commit is contained in:
parent
31457b8566
commit
17adcb5483
1 changed files with 4 additions and 4 deletions
|
@ -68,7 +68,7 @@ class LockConsoleTest extends ConsoleTest
|
||||||
public function testDelLock()
|
public function testDelLock()
|
||||||
{
|
{
|
||||||
$this->lockMock
|
$this->lockMock
|
||||||
->shouldReceive('releaseLock')
|
->shouldReceive('release')
|
||||||
->with('test', true)
|
->with('test', true)
|
||||||
->andReturn(true)
|
->andReturn(true)
|
||||||
->once();
|
->once();
|
||||||
|
@ -83,7 +83,7 @@ class LockConsoleTest extends ConsoleTest
|
||||||
public function testDelUnknownLock()
|
public function testDelUnknownLock()
|
||||||
{
|
{
|
||||||
$this->lockMock
|
$this->lockMock
|
||||||
->shouldReceive('releaseLock')
|
->shouldReceive('release')
|
||||||
->with('test', true)
|
->with('test', true)
|
||||||
->andReturn(false)
|
->andReturn(false)
|
||||||
->once();
|
->once();
|
||||||
|
@ -103,7 +103,7 @@ class LockConsoleTest extends ConsoleTest
|
||||||
->andReturn(false)
|
->andReturn(false)
|
||||||
->once();
|
->once();
|
||||||
$this->lockMock
|
$this->lockMock
|
||||||
->shouldReceive('acquireLock')
|
->shouldReceive('acquire')
|
||||||
->with('test')
|
->with('test')
|
||||||
->andReturn(true)
|
->andReturn(true)
|
||||||
->once();
|
->once();
|
||||||
|
@ -138,7 +138,7 @@ class LockConsoleTest extends ConsoleTest
|
||||||
->andReturn(false)
|
->andReturn(false)
|
||||||
->once();
|
->once();
|
||||||
$this->lockMock
|
$this->lockMock
|
||||||
->shouldReceive('acquireLock')
|
->shouldReceive('acquire')
|
||||||
->with('test')
|
->with('test')
|
||||||
->andReturn(false)
|
->andReturn(false)
|
||||||
->once();
|
->once();
|
||||||
|
|
Loading…
Reference in a new issue