Navigation Menu

Skip to content

Commit

Permalink
Fixing test method names.
Browse files Browse the repository at this point in the history
Adding a test for updateAll with empty values.
  • Loading branch information
markstory committed Mar 26, 2011
1 parent 6cc1688 commit 95d298b
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions cake/tests/cases/libs/model/model_write.test.php
Expand Up @@ -3890,14 +3890,26 @@ function testFindAllForeignKey() {
$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);
}

/**

This comment has been minimized.

Copy link
@ceeram

ceeram Mar 26, 2011

Contributor

the docblock should be updated as well

* testProductUpdateAllWithForeignKey
*
* @link http://code.cakephp.org/tickets/view/69
* @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'
Expand Down Expand Up @@ -3948,7 +3960,7 @@ function testProductUpdateAll() {
* @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'
Expand Down

0 comments on commit 95d298b

Please sign in to comment.