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