예제 #1
0
 public function testGetDefaultAttributes()
 {
     $test_entity_type = new GameType();
     $expected_attributes = (include __DIR__ . '/Fixture/default_attributes.php');
     $default_attributes = $test_entity_type->getDefaultAttributes();
     $this->assertInstanceOf(AttributeMap::CLASS, $default_attributes);
     $this->assertCount(10, $default_attributes);
     $this->assertEquals($expected_attributes, $default_attributes->toArray());
 }