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
This commit is contained in:
nate 2007-03-21 05:30:08 +00:00
parent 363ff0c9ab
commit 3cb77b98c9

View file

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