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:
nate 2008-06-28 01:08:52 +00:00
parent 2967fd8d01
commit 99eb60e7b0

View file

@ -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