Permalink
Browse files

Adding failing test for similar to.

Refs #1979
  • Loading branch information...
markstory committed Sep 9, 2011
1 parent da6a5fa commit 63902ab73f479984667cdf2cb08fe64ffe4a1a4e
Showing with 6 additions and 0 deletions.
  1. +6 −0 cake/tests/cases/libs/model/datasources/dbo_source.test.php
@@ -2395,6 +2395,12 @@ function testStringConditionsParsing() {
$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);
+
}
/**

0 comments on commit 63902ab

Please sign in to comment.