|
@@ 1250-1258 (lines=9) @@
|
| 1247 |
|
/** |
| 1248 |
|
* @depends testDaoGeneration |
| 1249 |
|
*/ |
| 1250 |
|
public function testOrderByExternalCol() |
| 1251 |
|
{ |
| 1252 |
|
// This test cases checks issue https://github.com/thecodingmachine/database.tdbm/issues/106 |
| 1253 |
|
|
| 1254 |
|
$userDao = new TestUserDao($this->tdbmService); |
| 1255 |
|
$users = $userDao->getUsersByCountryName(); |
| 1256 |
|
|
| 1257 |
|
$this->assertEquals('UK', $users[0]->getCountry()->getLabel()); |
| 1258 |
|
} |
| 1259 |
|
|
| 1260 |
|
/** |
| 1261 |
|
* @depends testDaoGeneration |
|
@@ 1290-1296 (lines=7) @@
|
| 1287 |
|
/** |
| 1288 |
|
* @depends testDaoGeneration |
| 1289 |
|
*/ |
| 1290 |
|
public function testOrderByExpression() |
| 1291 |
|
{ |
| 1292 |
|
$userDao = new TestUserDao($this->tdbmService); |
| 1293 |
|
$users = $userDao->getUsersByReversedCountryName(); |
| 1294 |
|
|
| 1295 |
|
$this->assertEquals('Jamaica', $users[0]->getCountry()->getLabel()); |
| 1296 |
|
} |
| 1297 |
|
|
| 1298 |
|
/** |
| 1299 |
|
* @depends testDaoGeneration |