mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
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:
parent
62124094b1
commit
981c117ae6
1 changed files with 6 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue