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:
nate 2008-06-04 19:27:55 +00:00
parent b3f605c1d8
commit 7e2b58b8d7

View file

@ -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() {