From 3cb77b98c94b2a8e94be33c1a48a23bcb2d8ea26 Mon Sep 17 00:00:00 2001 From: nate Date: Wed, 21 Mar 2007 05:30:08 +0000 Subject: [PATCH] Adding conditions parsing test to disprove Ticket #2256 git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4639 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 dfd5dbf35..acdd4b9bd 100644 --- a/cake/tests/cases/libs/model/datasources/dbo_source.test.php +++ b/cake/tests/cases/libs/model/datasources/dbo_source.test.php @@ -624,6 +624,10 @@ class DboSourceTest extends UnitTestCase { $result = $this->db->conditions("Comment.id = 'a'"); $expected = " WHERE `Comment`.`id` = 'a'"; $this->assertEqual($result, $expected); + + $result = $this->db->conditions("lower(Article.title) LIKE 'a%'"); + $expected = " WHERE lower( `Article`.`title`) LIKE 'a%'"; + $this->assertEqual($result, $expected); } function testArrayConditionsParsing() {