dblayeroo : allow to orderAdd on aliases too
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4285 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -957,4 +957,21 @@ class test_dblayeroo_{ENGINE} extends PHPUnit_Framework_TestCase
|
||||
$this->assertSame (array (0=>array ("ALIAS"=>"where2")),
|
||||
$res);
|
||||
}
|
||||
|
||||
public function test_orderAdd_alias1 ()
|
||||
{
|
||||
$tbl2 = $this->tbl2 ();
|
||||
$res = $tbl2->select ()
|
||||
->displayAdd ("uid", "max")
|
||||
->orderAdd ("max","ASC")
|
||||
->execute ();
|
||||
$tbl2->disconnect ();
|
||||
$this->assertSame (array (
|
||||
array ('max' => 1),
|
||||
array ('max' => 4),
|
||||
array ('max' => 5),
|
||||
array ('max' => 6),
|
||||
), $res);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user