Skip to content

Commit 9b605a3

Browse files
committed
ICM: Tests added.
1 parent 38f8d95 commit 9b605a3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/MutexTest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,18 @@ public function it_supports_memcached_strategy()
7373
$expectedStrategy = new MemcachedLock(Cache::getStore()->getMemcached());
7474
$this->assertEquals($expectedStrategy, $mutex->getStrategy());
7575
}
76+
77+
/**
78+
* @test
79+
* @runInSeparateProcess
80+
* @preserveGlobalState disabled
81+
*/
82+
public function it_delegates_public_method_calls_to_ninja_mutex()
83+
{
84+
$ninja = Mockery::mock('overload:NinjaMutex\Mutex');
85+
$ninja->shouldReceive('isLocked')->once();
86+
87+
$mutex = new Mutex($this->command);
88+
$mutex->isLocked();
89+
}
7690
}

0 commit comments

Comments
 (0)