Skip to content

Commit

Permalink
Do sameness checks on the type sensitive parts.
Browse files Browse the repository at this point in the history
I don't want to couple the array comparisons too tightly but still want
to check types for length/precision/scale.
  • Loading branch information
markstory committed Oct 9, 2017
1 parent 8bc332d commit 5e961c9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/TestCase/Database/Schema/SqlserverSchemaTest.php
Expand Up @@ -408,7 +408,11 @@ public function testDescribeTable()
];
$this->assertEquals(['id'], $result->primaryKey());
foreach ($expected as $field => $definition) {
$this->assertSame($definition, $result->column($field), 'Failed to match field ' . $field);
$column = $result->column($field);
$this->assertEquals($definition, $column, 'Failed to match field ' . $field);
$this->assertSame($definition['length'], $column['length']);
$this->assertSame($definition['scale'], $column['scale']);
$this->assertSame($definition['precision'], $column['precision']);
}
}

Expand Down

0 comments on commit 5e961c9

Please sign in to comment.