mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Adding test case for DboSource::conditions(), disproves #5008
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7297 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
2967fd8d01
commit
99eb60e7b0
1 changed files with 4 additions and 0 deletions
|
@ -2498,6 +2498,10 @@ class DboSourceTest extends CakeTestCase {
|
|||
$result = $this->testDb->conditions(array("Book.id" => NULL));
|
||||
$expected = " WHERE `Book`.`id` IS NULL";
|
||||
$this->assertEqual($result, $expected);
|
||||
|
||||
$result = $this->testDb->conditions(array('Listing.beds >=' => 0));
|
||||
$expected = " WHERE `Listing`.`beds` >= 0";
|
||||
$this->assertEqual($result, $expected);
|
||||
}
|
||||
/**
|
||||
* testMixedConditionsParsing method
|
||||
|
|
Loading…
Reference in a new issue