mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
parent
26495b36d1
commit
26d80debcd
1 changed files with 4 additions and 0 deletions
|
@ -2573,6 +2573,10 @@ class DboSourceTest extends CakeTestCase {
|
|||
$expected = " WHERE MAX(`Post`.`rating`) > '50'";
|
||||
$this->assertEqual($result, $expected);
|
||||
|
||||
$result = $this->testDb->conditions(array('lower(Article.title)' => 'secrets'));
|
||||
$expected = " WHERE lower(`Article`.`title`) = 'secrets'";
|
||||
$this->assertEqual($result, $expected);
|
||||
|
||||
$result = $this->testDb->conditions(array('title LIKE' => '%hello'));
|
||||
$expected = " WHERE `title` LIKE '%hello'";
|
||||
$this->assertEqual($result, $expected);
|
||||
|
|
Loading…
Reference in a new issue