| @@ 710-717 (lines=8) @@ | ||
| 707 | /** |
|
| 708 | * @depends testDaoGeneration |
|
| 709 | */ |
|
| 710 | public function testFindFromRawSqlWithUnion() |
|
| 711 | { |
|
| 712 | $countryDao = new TestCountryDao($this->tdbmService); |
|
| 713 | $countries = $countryDao->getCountriesUsingUnion(); |
|
| 714 | ||
| 715 | $this->assertCount(2, $countries); |
|
| 716 | $this->assertEquals(1, $countries[0]->getId()); |
|
| 717 | } |
|
| 718 | ||
| 719 | /** |
|
| 720 | * @depends testDaoGeneration |
|
| @@ 722-729 (lines=8) @@ | ||
| 719 | /** |
|
| 720 | * @depends testDaoGeneration |
|
| 721 | */ |
|
| 722 | public function testFindFromRawSqlWithSimpleQuery() |
|
| 723 | { |
|
| 724 | $countryDao = new TestCountryDao($this->tdbmService); |
|
| 725 | $countries = $countryDao->getCountriesUsingSimpleQuery(); |
|
| 726 | ||
| 727 | $this->assertCount(1, $countries); |
|
| 728 | $this->assertEquals(1, $countries[0]->getId()); |
|
| 729 | } |
|
| 730 | ||
| 731 | /** |
|
| 732 | * @depends testDaoGeneration |
|
| @@ 734-741 (lines=8) @@ | ||
| 731 | /** |
|
| 732 | * @depends testDaoGeneration |
|
| 733 | */ |
|
| 734 | public function testFindFromRawSqlWithDistinctQuery() |
|
| 735 | { |
|
| 736 | $countryDao = new TestCountryDao($this->tdbmService); |
|
| 737 | $countries = $countryDao->getCountriesUsingDistinctQuery(); |
|
| 738 | ||
| 739 | $this->assertCount(1, $countries); |
|
| 740 | $this->assertEquals(2, $countries[0]->getId()); |
|
| 741 | } |
|
| 742 | ||
| 743 | /** |
|
| 744 | * @depends testDaoGeneration |
|