Browse Source

Fix additional tests.

Schema data has length/precision separated now.
Mark Story 12 years ago
parent
commit
8dc9715494
1 changed files with 4 additions and 4 deletions
  1. 4 4
      tests/TestCase/View/Helper/FormHelperTest.php

+ 4 - 4
tests/TestCase/View/Helper/FormHelperTest.php

@@ -324,10 +324,10 @@ class ValidateUsersTable extends Table {
 		'id' => array('type' => 'integer', 'null' => '', 'default' => '', 'length' => '8'),
 		'name' => array('type' => 'string', 'null' => '', 'default' => '', 'length' => '255'),
 		'email' => array('type' => 'string', 'null' => '', 'default' => '', 'length' => '255'),
-		'balance' => array('type' => 'float', 'null' => false, 'length' => '5,2'),
-		'cost_decimal' => array('type' => 'decimal', 'null' => false, 'length' => '6,3'),
-		'ratio' => array('type' => 'decimal', 'null' => false, 'length' => '10,6'),
-		'population' => array('type' => 'decimal', 'null' => false, 'length' => '15,0'),
+		'balance' => array('type' => 'float', 'null' => false, 'length' => 5, 'precision' => 2),
+		'cost_decimal' => array('type' => 'decimal', 'null' => false, 'length' => 6, 'precision' => 3),
+		'ratio' => array('type' => 'decimal', 'null' => false, 'length' => 10, 'precision' => 6),
+		'population' => array('type' => 'decimal', 'null' => false, 'length' => 15, 'precision' => 0),
 		'created' => array('type' => 'date', 'null' => '1', 'default' => '', 'length' => ''),
 		'updated' => array('type' => 'datetime', 'null' => '1', 'default' => '', 'length' => null),
 		'_constraints' => array('primary' => ['type' => 'primary', 'columns' => ['id']])