From 63902ab73f479984667cdf2cb08fe64ffe4a1a4e Mon Sep 17 00:00:00 2001 From: mark_story Date: Thu, 8 Sep 2011 20:11:09 -0400 Subject: [PATCH] Adding failing test for similar to. Refs #1979 --- cake/tests/cases/libs/model/datasources/dbo_source.test.php | 6 ++++++ 1 file changed, 6 insertions(+) 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 f287647d1..4941b4be2 100644 --- a/cake/tests/cases/libs/model/datasources/dbo_source.test.php +++ b/cake/tests/cases/libs/model/datasources/dbo_source.test.php @@ -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); + } /**