Commit 50e9d8c5 authored by jwage's avatar jwage

[2.0] Fixing php error

parent 61a4a356
......@@ -236,7 +236,8 @@ class SchemaTest extends \PHPUnit_Framework_TestCase
$this->assertNotSame($tableB, $schemaNew->getTable('bar'));
$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'));
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment