@@ 1191-1199 (lines=9) @@ | ||
1188 | /** |
|
1189 | * @depends testDaoGeneration |
|
1190 | */ |
|
1191 | public function testOrderByExternalCol() |
|
1192 | { |
|
1193 | // This test cases checks issue https://github.com/thecodingmachine/database.tdbm/issues/106 |
|
1194 | ||
1195 | $userDao = new TestUserDao($this->tdbmService); |
|
1196 | $users = $userDao->getUsersByCountryName(); |
|
1197 | ||
1198 | $this->assertEquals('UK', $users[0]->getCountry()->getLabel()); |
|
1199 | } |
|
1200 | ||
1201 | /** |
|
1202 | * @depends testDaoGeneration |
|
@@ 1231-1237 (lines=7) @@ | ||
1228 | /** |
|
1229 | * @depends testDaoGeneration |
|
1230 | */ |
|
1231 | public function testOrderByExpression() |
|
1232 | { |
|
1233 | $userDao = new TestUserDao($this->tdbmService); |
|
1234 | $users = $userDao->getUsersByReversedCountryName(); |
|
1235 | ||
1236 | $this->assertEquals('Jamaica', $users[0]->getCountry()->getLabel()); |
|
1237 | } |
|
1238 | ||
1239 | /** |
|
1240 | * @depends testDaoGeneration |