| @@ 671-678 (lines=8) @@ | ||
| 668 | /** |
|
| 669 | * @depends testDaoGeneration |
|
| 670 | */ |
|
| 671 | public function testFindFilters() |
|
| 672 | { |
|
| 673 | $userDao = new TestUserDao($this->tdbmService); |
|
| 674 | $users = $userDao->getUsersByLoginStartingWith('bill'); |
|
| 675 | ||
| 676 | $this->assertCount(1, $users); |
|
| 677 | $this->assertEquals('bill.shakespeare', $users[0]->getLogin()); |
|
| 678 | } |
|
| 679 | ||
| 680 | /** |
|
| 681 | * @expectedException \TheCodingMachine\TDBM\TDBMException |
|
| @@ 856-863 (lines=8) @@ | ||
| 853 | /** |
|
| 854 | * @depends testDaoGeneration |
|
| 855 | */ |
|
| 856 | public function testFirst() |
|
| 857 | { |
|
| 858 | $userDao = new TestUserDao($this->tdbmService); |
|
| 859 | $users = $userDao->getUsersByLoginStartingWith('bill'); |
|
| 860 | ||
| 861 | $bill = $users->first(); |
|
| 862 | $this->assertEquals('bill.shakespeare', $bill->getLogin()); |
|
| 863 | } |
|
| 864 | ||
| 865 | /** |
|
| 866 | * @depends testDaoGeneration |
|