5555use Symfony \Component \Validator \Mapping \Loader \PropertyInfoLoader ;
5656use Symfony \Component \Validator \Util \LegacyTranslatorProxy ;
5757use Symfony \Component \Workflow ;
58+ use Symfony \Component \Workflow \Metadata \InMemoryMetadataStore ;
5859use Symfony \Contracts \Translation \TranslatorInterface ;
5960
6061abstract class FrameworkExtensionTest extends TestCase
@@ -242,6 +243,12 @@ public function testWorkflows()
242243 );
243244 $ this ->assertCount (4 , $ workflowDefinition ->getArgument (1 ));
244245 $ this ->assertSame (['draft ' ], $ workflowDefinition ->getArgument (2 ));
246+ $ metadataStoreDefinition = $ workflowDefinition ->getArgument (3 );
247+ $ this ->assertSame (InMemoryMetadataStore::class, $ metadataStoreDefinition ->getClass ());
248+ $ this ->assertSame ([
249+ 'title ' => 'article workflow ' ,
250+ 'description ' => 'workflow for articles ' ,
251+ ], $ metadataStoreDefinition ->getArgument (0 ));
245252
246253 $ this ->assertTrue ($ container ->hasDefinition ('state_machine.pull_request ' ), 'State machine is registered as a service ' );
247254 $ this ->assertSame ('state_machine.abstract ' , $ container ->getDefinition ('state_machine.pull_request ' )->getParent ());
@@ -266,7 +273,7 @@ public function testWorkflows()
266273
267274 $ metadataStoreDefinition = $ stateMachineDefinition ->getArgument (3 );
268275 $ this ->assertInstanceOf (Definition::class, $ metadataStoreDefinition );
269- $ this ->assertSame (Workflow \ Metadata \ InMemoryMetadataStore::class, $ metadataStoreDefinition ->getClass ());
276+ $ this ->assertSame (InMemoryMetadataStore::class, $ metadataStoreDefinition ->getClass ());
270277
271278 $ workflowMetadata = $ metadataStoreDefinition ->getArgument (0 );
272279 $ this ->assertSame (['title ' => 'workflow title ' ], $ workflowMetadata );
0 commit comments