mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Adding conditions parsing test to disprove Ticket #2256
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4639 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
363ff0c9ab
commit
3cb77b98c9
1 changed files with 4 additions and 0 deletions
|
@ -624,6 +624,10 @@ class DboSourceTest extends UnitTestCase {
|
||||||
$result = $this->db->conditions("Comment.id = 'a'");
|
$result = $this->db->conditions("Comment.id = 'a'");
|
||||||
$expected = " WHERE `Comment`.`id` = 'a'";
|
$expected = " WHERE `Comment`.`id` = 'a'";
|
||||||
$this->assertEqual($result, $expected);
|
$this->assertEqual($result, $expected);
|
||||||
|
|
||||||
|
$result = $this->db->conditions("lower(Article.title) LIKE 'a%'");
|
||||||
|
$expected = " WHERE lower( `Article`.`title`) LIKE 'a%'";
|
||||||
|
$this->assertEqual($result, $expected);
|
||||||
}
|
}
|
||||||
|
|
||||||
function testArrayConditionsParsing() {
|
function testArrayConditionsParsing() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue