Esempio n. 1
0
 public function setUp()
 {
     $author_aggregate_root_type = new AuthorType();
     $this->aggregate_root_type_map = new AggregateRootTypeMap([$author_aggregate_root_type->getPrefix() => $author_aggregate_root_type]);
 }
Esempio n. 2
0
 public function testAggregateRootTypeStateMachineNameResolvingWorks()
 {
     $author_type = new AuthorType();
     $this->assertEquals('honeybee_cmf.aggregate_fixtures.author', $author_type->getPrefix());
     $this->assertEquals('honeybee_cmf.aggregate_fixtures.author.default_workflow', $this->getDefaultWorkflowService()->resolveStateMachineName($author_type));
 }