1212 */
1313class UserUnitTest extends TestCase
1414{
15- /**
16- * @test
17- *
18- * @throws \ReflectionException
19- */
20- public function it_return_workflow_instance ()
15+ public function test_it_return_workflow_instance ()
2116 {
2217 $ this ->assertInstanceOf (StateWorkflow::class, $ this ->user ->workflow ());
2318 }
2419
25- /**
26- * Test current state to be new.
27- *
28- * @test
29- *
30- * @throws \ReflectionException
31- */
32- public function is_current_state_new ()
20+ public function test_is_current_state_new ()
3321 {
3422 $ this ->assertEquals ('new ' , $ this ->user ->state ());
3523 }
3624
37- /**
38- * Test if transition can be applied or not.
39- *
40- * @test
41- *
42- * @throws \ReflectionException
43- */
44- public function can_apply_transition ()
25+ public function test_can_apply_transition ()
4526 {
4627 $ this ->assertTrue ($ this ->user ->canTransition ('create ' ));
4728 $ this ->assertFalse ($ this ->user ->canTransition ('block ' ));
4829 }
4930
50- /**
51- * Test invalid transition.
52- *
53- * @test
54- *
55- * @throws \ReflectionException
56- */
57- public function invalid_transition_throws_exception ()
31+ public function test_invalid_transition_throws_exception ()
5832 {
5933 $ expectedExceptionClass = class_exists (NotEnabledTransitionException::class)
6034 ? NotEnabledTransitionException::class
@@ -64,14 +38,7 @@ public function invalid_transition_throws_exception()
6438 $ this ->user ->applyTransition ('block ' );
6539 }
6640
67- /**
68- * Change Model states by applying transitions.
69- *
70- * @test
71- *
72- * @throws \ReflectionException
73- */
74- public function apply_transitions ()
41+ public function test_apply_transitions ()
7542 {
7643 $ this ->user ->applyTransition ('create ' );
7744 $ this ->user = $ this ->user ->refresh ();
0 commit comments