public function setUp()
 {
     $game_type = new GameType();
     $player_type = new PlayerType();
     $team_type = new TeamType();
     $topic_type = new TopicType();
     $topic_option_type = new TopicOptionType();
     $this->projection_type_map = new ProjectionTypeMap([$game_type->getVariantPrefix() => $game_type, $player_type->getVariantPrefix() => $player_type, $team_type->getVariantPrefix() => $team_type, $topic_type->getVariantPrefix() => $topic_type, $topic_option_type->getVariantPrefix() => $topic_option_type]);
 }
 public function setUp()
 {
     $game_aggregate_root_type = new GameType();
     $team_aggregate_root_type = new TeamType();
     $this->aggregate_root_type_map = new AggregateRootTypeMap([$game_aggregate_root_type->getPrefix() => $game_aggregate_root_type, $team_aggregate_root_type->getPrefix() => $team_aggregate_root_type]);
     $game_projection_type = new GameProjectionType();
     $player_projection_type = new PlayerProjectionType();
     $team_projection_type = new TeamProjectionType();
     $this->projection_type_map = new ProjectionTypeMap([$game_projection_type->getVariantPrefix() => $game_projection_type, $player_projection_type->getVariantPrefix() => $player_projection_type, $team_projection_type->getVariantPrefix() => $team_projection_type]);
 }
Example #3
0
 public function testGetVariantPrefix()
 {
     $test_entity_type = new GameType();
     $this->assertEquals('honeybee_tests.game_schema.game::projection.standard', $test_entity_type->getVariantPrefix());
 }