mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
parent
a10bdb226a
commit
3e16f8911d
1 changed files with 14 additions and 0 deletions
|
@ -421,6 +421,20 @@ class ModelDeleteTest extends BaseModelTest {
|
|||
$this->assertTrue($result, 'deleteAll returned false when all no records matched conditions. %s');
|
||||
}
|
||||
|
||||
/**
|
||||
* testDeleteAll diamond operator method
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testDeleteAllDiamondOperator() {
|
||||
$this->loadFixtures('Article');
|
||||
$article = new Article();
|
||||
|
||||
$result = $article->deleteAll(array('Article.id <>' => 1));
|
||||
$this->assertTrue($result);
|
||||
$this->assertFalse($article->exists(2));
|
||||
}
|
||||
|
||||
/**
|
||||
* testDeleteAllUnknownColumn method
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue