|
45 | 45 | useSymfony\Component\DependencyInjection\Loader\ClosureLoader; |
46 | 46 | useSymfony\Component\DependencyInjection\ParameterBag\EnvPlaceholderParameterBag; |
47 | 47 | useSymfony\Component\DependencyInjection\Reference; |
| 48 | +useSymfony\Component\DependencyInjection\Tests\Compiler\D; |
48 | 49 | useSymfony\Component\EventDispatcher\EventDispatcherInterface; |
49 | 50 | useSymfony\Component\Finder\Finder; |
50 | 51 | useSymfony\Component\Form\Form; |
@@ -305,7 +306,12 @@ public function testWorkflows() |
305 | 306 | $this->assertArrayHasKey('index_4',$args); |
306 | 307 | $this->assertNull($args['index_4'],'Workflows has eventsToDispatch=null'); |
307 | 308 |
|
308 | | -$this->assertSame(['workflow' => [['name' =>'article']],'workflow.workflow' => [['name' =>'article']]],$container->getDefinition('workflow.article')->getTags()); |
| 309 | +$tags =$container->getDefinition('workflow.article')->getTags(); |
| 310 | +$this->assertArrayHasKey('workflow',$tags); |
| 311 | +$this->assertArrayHasKey('workflow.workflow',$tags); |
| 312 | +$this->assertSame([['name' =>'article']],$tags['workflow.workflow']); |
| 313 | +$this->assertSame('article',$tags['workflow'][0]['name'] ??null); |
| 314 | +$this->assertSame('workflow',$tags['workflow'][0]['config']['type'] ??null); |
309 | 315 |
|
310 | 316 | $this->assertTrue($container->hasDefinition('workflow.article.definition'),'Workflow definition is registered as a service'); |
311 | 317 |
|
@@ -336,7 +342,12 @@ public function testWorkflows() |
336 | 342 | $this->assertSame('state_machine.abstract',$container->getDefinition('state_machine.pull_request')->getParent()); |
337 | 343 | $this->assertTrue($container->hasDefinition('state_machine.pull_request.definition'),'State machine definition is registered as a service'); |
338 | 344 |
|
339 | | -$this->assertSame(['workflow' => [['name' =>'pull_request']],'workflow.state_machine' => [['name' =>'pull_request']]],$container->getDefinition('state_machine.pull_request')->getTags()); |
| 345 | +$tags =$container->getDefinition('state_machine.pull_request')->getTags(); |
| 346 | +$this->assertArrayHasKey('workflow',$tags); |
| 347 | +$this->assertArrayHasKey('workflow.state_machine',$tags); |
| 348 | +$this->assertSame([['name' =>'pull_request']],$tags['workflow.state_machine']); |
| 349 | +$this->assertSame('pull_request',$tags['workflow'][0]['name'] ??null); |
| 350 | +$this->assertSame('state_machine',$tags['workflow'][0]['config']['type'] ??null); |
340 | 351 |
|
341 | 352 | $stateMachineDefinition =$container->getDefinition('state_machine.pull_request.definition'); |
342 | 353 |
|
|