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