Adding failing test for similar to.

Refs #1979
This commit is contained in:
mark_story 2011-09-08 20:11:09 -04:00
parent da6a5fa301
commit 63902ab73f

View file

@ -2395,6 +2395,12 @@ class DboSourceTest extends CakeTestCase {
$result = $this->testDb->conditions($conditions);
$expected = " WHERE `Artist`.`name` = 'JUDY AND MARY'";
$this->assertEqual($result, $expected);
$conditions = array('Company.name similar to ' => 'a word');
$result = $this->testDb->conditions($conditions);
$expected = " WHERE `Company`.`name` similar to 'a word'";
$this->assertEqual($result, $expected);
}
/**