Skip to content
Browse files

Do sameness checks on the type sensitive parts.

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 5e961c9e0ecc2023812f32fa3cb5e0a16113a6ae
Showing with 5 additions and 1 deletion.
  1. +5 −1 tests/TestCase/Database/Schema/SqlserverSchemaTest.php
@@ -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']);

0 comments on commit 5e961c9

Please sign in to comment.
You can’t perform that action at this time.