|
@@ 1263-1271 (lines=9) @@
|
| 1260 |
|
/** |
| 1261 |
|
* @depends testDaoGeneration |
| 1262 |
|
*/ |
| 1263 |
|
public function testOrderByExternalCol() |
| 1264 |
|
{ |
| 1265 |
|
// This test cases checks issue https://github.com/thecodingmachine/database.tdbm/issues/106 |
| 1266 |
|
|
| 1267 |
|
$userDao = new TestUserDao($this->tdbmService); |
| 1268 |
|
$users = $userDao->getUsersByCountryName(); |
| 1269 |
|
|
| 1270 |
|
$this->assertEquals('UK', $users[0]->getCountry()->getLabel()); |
| 1271 |
|
} |
| 1272 |
|
|
| 1273 |
|
/** |
| 1274 |
|
* @depends testDaoGeneration |
|
@@ 1303-1309 (lines=7) @@
|
| 1300 |
|
/** |
| 1301 |
|
* @depends testDaoGeneration |
| 1302 |
|
*/ |
| 1303 |
|
public function testOrderByExpression() |
| 1304 |
|
{ |
| 1305 |
|
$userDao = new TestUserDao($this->tdbmService); |
| 1306 |
|
$users = $userDao->getUsersByReversedCountryName(); |
| 1307 |
|
|
| 1308 |
|
$this->assertEquals('Jamaica', $users[0]->getCountry()->getLabel()); |
| 1309 |
|
} |
| 1310 |
|
|
| 1311 |
|
/** |
| 1312 |
|
* @depends testDaoGeneration |