We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca7047f commit 0062979Copy full SHA for 0062979
tests/MutexTest.php
@@ -13,4 +13,14 @@ public function it_has_one_required_constructor_argument_which_is_command()
13
$mutex = new Mutex($command);
14
$this->assertInstanceOf(Mutex::class, $mutex);
15
}
16
+
17
+ /** @test */
18
+ public function it_determines_mutex_strategy_once_while_creation()
19
+ {
20
+ $command = Mockery::mock(GenericCommand::class)->makePartial();
21
+ $command->shouldReceive('argument')->withNoArgs()->once()->andReturn(['foo' => 'bar']);
22
23
+ $mutex = new Mutex($command);
24
+ $this->assertSame($mutex->getStrategy(), $mutex->getStrategy());
25
+ }
26
0 commit comments