@@ -84,10 +84,10 @@ |
||
84 | 84 | |
85 | 85 | $transitionTriggerJobToSchedule = new Job('workflow:transition:trigger', |
86 | 86 | [ |
87 | - '--transition=' . $transitionName, |
|
88 | - '--workflow=' . $workflowName, |
|
89 | - '--subjectClass=' . $subjectClass, |
|
90 | - '--subjectId=' . $subjectId, |
|
87 | + '--transition='.$transitionName, |
|
88 | + '--workflow='.$workflowName, |
|
89 | + '--subjectClass='.$subjectClass, |
|
90 | + '--subjectId='.$subjectId, |
|
91 | 91 | ] |
92 | 92 | ); |
93 | 93 |
@@ -66,10 +66,10 @@ discard block |
||
66 | 66 | $transition = new ScheduledTransition('t1', 'PT1S'); |
67 | 67 | |
68 | 68 | $transitionTriggerJobArgs = [ |
69 | - '--transition=' . $transition->getTransitionName(), |
|
70 | - '--workflow=' . $workflowName, |
|
71 | - '--subjectClass=' . $subjectClass, |
|
72 | - '--subjectId=' . $subjectId, |
|
69 | + '--transition='.$transition->getTransitionName(), |
|
70 | + '--workflow='.$workflowName, |
|
71 | + '--subjectClass='.$subjectClass, |
|
72 | + '--subjectId='.$subjectId, |
|
73 | 73 | ]; |
74 | 74 | |
75 | 75 | Carbon::setTestNow(Carbon::now()); |
@@ -79,14 +79,14 @@ discard block |
||
79 | 79 | /** @var $em \PHPUnit_Framework_MockObject_MockObject|ObjectManager */ |
80 | 80 | $em->expects(self::exactly(2))->method('persist')->withConsecutive( |
81 | 81 | [self::callback( |
82 | - function (Job $job) use ($transitionTriggerJobArgs, $executeJobAfter) { |
|
82 | + function(Job $job) use ($transitionTriggerJobArgs, $executeJobAfter) { |
|
83 | 83 | return |
84 | 84 | $job->getArgs() == $transitionTriggerJobArgs && |
85 | 85 | $job->getExecuteAfter() == $executeJobAfter; |
86 | 86 | } |
87 | 87 | )], |
88 | 88 | [self::callback( |
89 | - function (ScheduledJob $job) { |
|
89 | + function(ScheduledJob $job) { |
|
90 | 90 | return |
91 | 91 | $job->getReschedulable() == true && $job->getJob() instanceof Job; |
92 | 92 | } |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | /** @var $em \PHPUnit_Framework_MockObject_MockObject|ObjectManager */ |
121 | 121 | $em->expects(self::once())->method('persist')->withConsecutive( |
122 | 122 | [self::callback( |
123 | - function (Job $job) use ($newExecuteJobAfter) { |
|
123 | + function(Job $job) use ($newExecuteJobAfter) { |
|
124 | 124 | return $job->getExecuteAfter() == $newExecuteJobAfter; |
125 | 125 | } |
126 | 126 | )] |