diff --git a/cake/tests/cases/libs/model/model_write.test.php b/cake/tests/cases/libs/model/model_write.test.php index 58c8fc957..3c9d0059b 100644 --- a/cake/tests/cases/libs/model/model_write.test.php +++ b/cake/tests/cases/libs/model/model_write.test.php @@ -3890,6 +3890,18 @@ class ModelWriteTest extends BaseModelTest { $this->assertEqual($resultsFkFalse, $expected); } +/** + * test updateAll with empty values. + * + * @return void + */ + function testUpdateAllEmptyValues() { + $this->loadFixtures('Author', 'Post'); + $model = new Author(); + $result = $model->updateAll(array('user' => '""')); + $this->assertTrue($result); + } + /** * testProductUpdateAllWithForeignKey * @@ -3897,7 +3909,7 @@ class ModelWriteTest extends BaseModelTest { * @access public * @return void */ - function testProductUpdateAll() { + function testUpdateAllWithJoins() { $this->skipIf( $this->db->config['driver'] == 'postgres', '%s Currently, there is no way of doing joins in an update statement in postgresql' @@ -3948,7 +3960,7 @@ class ModelWriteTest extends BaseModelTest { * @access public * @return void */ - function testProductUpdateAllWithoutForeignKey() { + function testUpdateAllWithoutForeignKey() { $this->skipIf( $this->db->config['driver'] == 'postgres', '%s Currently, there is no way of doing joins in an update statement in postgresql'