mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Adding test case for DboSource::order(), disproves #3098
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7117 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
b3f605c1d8
commit
7e2b58b8d7
1 changed files with 4 additions and 0 deletions
|
@ -3035,6 +3035,10 @@ class DboSourceTest extends CakeTestCase {
|
|||
|
||||
$result = $this->testDb->order("Model.name+0 ASC");
|
||||
$this->assertPattern("/^\s*ORDER BY\s+`Model`\.`name`\+0\s+ASC\s*$/", $result);
|
||||
|
||||
$result = $this->testDb->order("Anuncio.destaque & 2 DESC");
|
||||
$expected = ' ORDER BY `Anuncio`.`destaque` & 2 DESC';
|
||||
$this->assertEqual($result, $expected);
|
||||
}
|
||||
|
||||
function testCalculations() {
|
||||
|
|
Loading…
Add table
Reference in a new issue