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() {