Esempio n. 1
0
 public function testToArray()
 {
     $tableNames = array_keys($this->schemaDefinition['tables']);
     $viewNames = array_keys($this->schemaDefinition['views']);
     $relationNames = array_keys($this->schemaDefinition['relations']);
     $actual = $this->schema->toArray();
     $this->assertEquals($tableNames, array_keys($actual['tables']));
     $this->assertEquals($viewNames, array_keys($actual['views']));
     $this->assertEquals($relationNames, array_keys($actual['relations']));
 }