コード例 #1
0
ファイル: PhabricTest.php プロジェクト: Anyqax/Phabric
 public function testCreateEntitiesFromConfig()
 {
     $config = array('event' => array('tableName' => 'event'), 'vote' => array('tableName' => 'vote'), 'session' => array('tableName' => 'session'));
     $this->object->createEntitiesFromConfig($config);
     $this->assertInstanceOf('Phabric\\Entity', $this->object->getEntity('event'));
     $this->assertInstanceOf('Phabric\\Entity', $this->object->getEntity('vote'));
     $this->assertInstanceOf('Phabric\\Entity', $this->object->getEntity('session'));
 }