File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments