Skip to content

Commit b49d892

Browse files
committed
ICM: Timeout tests added.
1 parent 84144e4 commit b49d892

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/WithoutOverlappingTraitTest.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,24 @@ public function mutex_timeout_can_be_set_to_null_by_protected_field()
4141
$this->assertNull((new NullTimeoutCommand)->getMutexTimeout());
4242
}
4343

44+
/** @test */
45+
public function mutex_timeout_can_be_set_by_the_public_method()
46+
{
47+
$command = new GenericCommand;
48+
$command->setMutexTimeout(5000);
49+
50+
$this->assertEquals(5000, $command->getMutexTimeout());
51+
}
52+
53+
/** @test */
54+
public function mutex_timeout_can_be_set_to_null_by_the_public_method()
55+
{
56+
$command = new GenericCommand;
57+
$command->setMutexTimeout(null);
58+
59+
$this->assertNull($command->getMutexTimeout());
60+
}
61+
4462
/** @test */
4563
public function it_generates_mutex_name_based_on_the_command_name_and_arguments()
4664
{

0 commit comments

Comments
 (0)