[2.0] Fixing php error
This commit is contained in:
parent
61a4a35694
commit
50e9d8c547
@ -236,7 +236,8 @@ class SchemaTest extends \PHPUnit_Framework_TestCase
|
|||||||
$this->assertNotSame($tableB, $schemaNew->getTable('bar'));
|
$this->assertNotSame($tableB, $schemaNew->getTable('bar'));
|
||||||
$this->assertNotSame($tableB->getColumn('id'), $schemaNew->getTable('bar')->getColumn('id'));
|
$this->assertNotSame($tableB->getColumn('id'), $schemaNew->getTable('bar')->getColumn('id'));
|
||||||
|
|
||||||
$fk = current( $schemaNew->getTable('bar')->getForeignKeys() );
|
$fk = $schemaNew->getTable('bar')->getForeignKeys();
|
||||||
|
$fk = current($fk);
|
||||||
$this->assertSame($schemaNew->getTable('bar'), $this->readAttribute($fk, '_localTable'));
|
$this->assertSame($schemaNew->getTable('bar'), $this->readAttribute($fk, '_localTable'));
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user