From 99eb60e7b0fc39a54557833d148fd3fc0a4a9a87 Mon Sep 17 00:00:00 2001 From: nate Date: Sat, 28 Jun 2008 01:08:52 +0000 Subject: [PATCH] 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 --- cake/tests/cases/libs/model/datasources/dbo_source.test.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cake/tests/cases/libs/model/datasources/dbo_source.test.php b/cake/tests/cases/libs/model/datasources/dbo_source.test.php index 7e28621da..78f4a1ed4 100644 --- a/cake/tests/cases/libs/model/datasources/dbo_source.test.php +++ b/cake/tests/cases/libs/model/datasources/dbo_source.test.php @@ -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