mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
Fixing test method names.
Adding a test for updateAll with empty values.
This commit is contained in:
parent
6cc1688d4e
commit
95d298bf28
1 changed files with 14 additions and 2 deletions
|
@ -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'
|
||||||
|
|
Loading…
Add table
Reference in a new issue