Browse files

Not checking length on databases that won't return it for floats

  • Loading branch information...
1 parent fcf5837 commit d06d5f873804ab073eee77599b7a19d77f5f0224 @lorenzo lorenzo committed Sep 3, 2011
Showing with 6 additions and 4 deletions.
  1. +6 −4 lib/Cake/Test/Case/Model/CakeSchemaTest.php
View
10 lib/Cake/Test/Case/Model/CakeSchemaTest.php
@@ -535,10 +535,12 @@ public function testSchemaRead() {
$this->assertEqual(array_keys($fields), array_keys($read['tables'][$table]));
}
- $this->assertEqual(
- $read['tables']['datatypes']['float_field']['length'],
- $this->Schema->tables['datatypes']['float_field']['length']
- );
+ if (isset($read['tables']['datatypes']['float_field']['length'])) {
+ $this->assertEqual(
+ $read['tables']['datatypes']['float_field']['length'],
+ $this->Schema->tables['datatypes']['float_field']['length']
+ );
+ }
$this->assertEqual(
$read['tables']['datatypes']['float_field']['type'],

0 comments on commit d06d5f8

Please sign in to comment.