@@ 1179-1187 (lines=9) @@ | ||
1176 | /** |
|
1177 | * @depends testDaoGeneration |
|
1178 | */ |
|
1179 | public function testOrderByExternalCol() |
|
1180 | { |
|
1181 | // This test cases checks issue https://github.com/thecodingmachine/database.tdbm/issues/106 |
|
1182 | ||
1183 | $userDao = new TestUserDao($this->tdbmService); |
|
1184 | $users = $userDao->getUsersByCountryName(); |
|
1185 | ||
1186 | $this->assertEquals('UK', $users[0]->getCountry()->getLabel()); |
|
1187 | } |
|
1188 | ||
1189 | /** |
|
1190 | * @depends testDaoGeneration |
|
@@ 1219-1225 (lines=7) @@ | ||
1216 | /** |
|
1217 | * @depends testDaoGeneration |
|
1218 | */ |
|
1219 | public function testOrderByExpression() |
|
1220 | { |
|
1221 | $userDao = new TestUserDao($this->tdbmService); |
|
1222 | $users = $userDao->getUsersByReversedCountryName(); |
|
1223 | ||
1224 | $this->assertEquals('Jamaica', $users[0]->getCountry()->getLabel()); |
|
1225 | } |
|
1226 | ||
1227 | /** |
|
1228 | * @depends testDaoGeneration |