Fixing test method names.

Adding a test for updateAll with empty values.
This commit is contained in:
mark_story 2011-03-26 11:10:43 -04:00
parent 6cc1688d4e
commit 95d298bf28

View file

@ -3890,6 +3890,18 @@ class ModelWriteTest extends BaseModelTest {
$this->assertEqual($resultsFkFalse, $expected); $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 * testProductUpdateAllWithForeignKey
* *
@ -3897,7 +3909,7 @@ class ModelWriteTest extends BaseModelTest {
* @access public * @access public
* @return void * @return void
*/ */
function testProductUpdateAll() { function testUpdateAllWithJoins() {
$this->skipIf( $this->skipIf(
$this->db->config['driver'] == 'postgres', $this->db->config['driver'] == 'postgres',
'%s Currently, there is no way of doing joins in an update statement in postgresql' '%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 * @access public
* @return void * @return void
*/ */
function testProductUpdateAllWithoutForeignKey() { function testUpdateAllWithoutForeignKey() {
$this->skipIf( $this->skipIf(
$this->db->config['driver'] == 'postgres', $this->db->config['driver'] == 'postgres',
'%s Currently, there is no way of doing joins in an update statement in postgresql' '%s Currently, there is no way of doing joins in an update statement in postgresql'