|
@@ 1174-1182 (lines=9) @@
|
| 1171 |
|
/** |
| 1172 |
|
* @depends testDaoGeneration |
| 1173 |
|
*/ |
| 1174 |
|
public function testOrderByExternalCol() |
| 1175 |
|
{ |
| 1176 |
|
// This test cases checks issue https://github.com/thecodingmachine/database.tdbm/issues/106 |
| 1177 |
|
|
| 1178 |
|
$userDao = new TestUserDao($this->tdbmService); |
| 1179 |
|
$users = $userDao->getUsersByCountryName(); |
| 1180 |
|
|
| 1181 |
|
$this->assertEquals('UK', $users[0]->getCountry()->getLabel()); |
| 1182 |
|
} |
| 1183 |
|
|
| 1184 |
|
/** |
| 1185 |
|
* @depends testDaoGeneration |
|
@@ 1214-1220 (lines=7) @@
|
| 1211 |
|
/** |
| 1212 |
|
* @depends testDaoGeneration |
| 1213 |
|
*/ |
| 1214 |
|
public function testOrderByExpression() |
| 1215 |
|
{ |
| 1216 |
|
$userDao = new TestUserDao($this->tdbmService); |
| 1217 |
|
$users = $userDao->getUsersByReversedCountryName(); |
| 1218 |
|
|
| 1219 |
|
$this->assertEquals('Jamaica', $users[0]->getCountry()->getLabel()); |
| 1220 |
|
} |
| 1221 |
|
|
| 1222 |
|
/** |
| 1223 |
|
* @depends testDaoGeneration |