Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding failing test for similar to.

Refs #1979
  • Loading branch information...
commit 63902ab73f479984667cdf2cb08fe64ffe4a1a4e 1 parent da6a5fa
@markstory markstory authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 cake/tests/cases/libs/model/datasources/dbo_source.test.php
View
6 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);
+
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.