@@ -264,7 +264,7 @@ public function testWorkflows()
264
264
$ params = $ transitionsMetadataCall [1 ];
265
265
$ this ->assertCount (2 , $ params );
266
266
$ this ->assertInstanceOf (Reference::class, $ params [0 ]);
267
- $ this ->assertSame ('state_machine.pull_request.transition.0 ' , (string ) $ params [0 ]);
267
+ $ this ->assertSame ('. state_machine.pull_request.transition.0 ' , (string ) $ params [0 ]);
268
268
269
269
$ serviceMarkingStoreWorkflowDefinition = $ container ->getDefinition ('workflow.service_marking_store_workflow ' );
270
270
/** @var Reference $markingStoreRef */
@@ -311,7 +311,7 @@ public function testWorkflowMultipleTransitionsWithSameName()
311
311
312
312
$ this ->assertCount (5 , $ transitions );
313
313
314
- $ this ->assertSame ('workflow.article.transition.0 ' , (string ) $ transitions [0 ]);
314
+ $ this ->assertSame ('. workflow.article.transition.0 ' , (string ) $ transitions [0 ]);
315
315
$ this ->assertSame ([
316
316
'request_review ' ,
317
317
[
@@ -322,7 +322,7 @@ public function testWorkflowMultipleTransitionsWithSameName()
322
322
],
323
323
], $ container ->getDefinition ($ transitions [0 ])->getArguments ());
324
324
325
- $ this ->assertSame ('workflow.article.transition.1 ' , (string ) $ transitions [1 ]);
325
+ $ this ->assertSame ('. workflow.article.transition.1 ' , (string ) $ transitions [1 ]);
326
326
$ this ->assertSame ([
327
327
'journalist_approval ' ,
328
328
[
@@ -333,7 +333,7 @@ public function testWorkflowMultipleTransitionsWithSameName()
333
333
],
334
334
], $ container ->getDefinition ($ transitions [1 ])->getArguments ());
335
335
336
- $ this ->assertSame ('workflow.article.transition.2 ' , (string ) $ transitions [2 ]);
336
+ $ this ->assertSame ('. workflow.article.transition.2 ' , (string ) $ transitions [2 ]);
337
337
$ this ->assertSame ([
338
338
'spellchecker_approval ' ,
339
339
[
@@ -344,7 +344,7 @@ public function testWorkflowMultipleTransitionsWithSameName()
344
344
],
345
345
], $ container ->getDefinition ($ transitions [2 ])->getArguments ());
346
346
347
- $ this ->assertSame ('workflow.article.transition.3 ' , (string ) $ transitions [3 ]);
347
+ $ this ->assertSame ('. workflow.article.transition.3 ' , (string ) $ transitions [3 ]);
348
348
$ this ->assertSame ([
349
349
'publish ' ,
350
350
[
@@ -356,7 +356,7 @@ public function testWorkflowMultipleTransitionsWithSameName()
356
356
],
357
357
], $ container ->getDefinition ($ transitions [3 ])->getArguments ());
358
358
359
- $ this ->assertSame ('workflow.article.transition.4 ' , (string ) $ transitions [4 ]);
359
+ $ this ->assertSame ('. workflow.article.transition.4 ' , (string ) $ transitions [4 ]);
360
360
$ this ->assertSame ([
361
361
'publish ' ,
362
362
[
@@ -372,10 +372,10 @@ public function testWorkflowGuardExpressions()
372
372
{
373
373
$ container = $ this ->createContainerFromFile ('workflow_with_guard_expression ' );
374
374
375
- $ this ->assertTrue ($ container ->hasDefinition ('workflow.article.listener.guard ' ), 'Workflow guard listener is registered as a service ' );
375
+ $ this ->assertTrue ($ container ->hasDefinition ('. workflow.article.listener.guard ' ), 'Workflow guard listener is registered as a service ' );
376
376
$ this ->assertTrue ($ container ->hasParameter ('workflow.has_guard_listeners ' ), 'Workflow guard listeners parameter exists ' );
377
377
$ this ->assertTrue (true === $ container ->getParameter ('workflow.has_guard_listeners ' ), 'Workflow guard listeners parameter is enabled ' );
378
- $ guardDefinition = $ container ->getDefinition ('workflow.article.listener.guard ' );
378
+ $ guardDefinition = $ container ->getDefinition ('. workflow.article.listener.guard ' );
379
379
$ this ->assertSame ([
380
380
[
381
381
'event ' => 'workflow.article.guard.publish ' ,
@@ -385,9 +385,9 @@ public function testWorkflowGuardExpressions()
385
385
$ guardsConfiguration = $ guardDefinition ->getArgument (0 );
386
386
$ this ->assertTrue (1 === \count ($ guardsConfiguration ), 'Workflow guard configuration contains one element per transition name ' );
387
387
$ transitionGuardExpressions = $ guardsConfiguration ['workflow.article.guard.publish ' ];
388
- $ this ->assertSame ('workflow.article.transition.3 ' , (string ) $ transitionGuardExpressions [0 ]->getArgument (0 ));
388
+ $ this ->assertSame ('. workflow.article.transition.3 ' , (string ) $ transitionGuardExpressions [0 ]->getArgument (0 ));
389
389
$ this ->assertSame ('!!true ' , $ transitionGuardExpressions [0 ]->getArgument (1 ));
390
- $ this ->assertSame ('workflow.article.transition.4 ' , (string ) $ transitionGuardExpressions [1 ]->getArgument (0 ));
390
+ $ this ->assertSame ('. workflow.article.transition.4 ' , (string ) $ transitionGuardExpressions [1 ]->getArgument (0 ));
391
391
$ this ->assertSame ('!!false ' , $ transitionGuardExpressions [1 ]->getArgument (1 ));
392
392
}
393
393
0 commit comments