Adding test case for correct usage of code given in Ticket #2960

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5598 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-08-29 01:18:48 +00:00
parent 62124094b1
commit 981c117ae6

View file

@ -1401,6 +1401,12 @@ class DboSourceTest extends UnitTestCase {
$result = $this->db->conditions("file = 'index.html'");
$expected = " WHERE file = 'index.html'";
$this->assertEqual($result, $expected);
$letter = $letter = 'd.a';
$conditions = array('Company.name' => 'like '.$letter.'%');
$result = $this->db->conditions($conditions);
$expected = " WHERE `Company`.`name` like 'd.a%'";
$this->assertEqual($result, $expected);
}
function testQuotesInStringConditions() {