| @@ 746-753 (lines=8) @@ | ||
| 743 | /** |
|
| 744 | * @depends testDaoGeneration |
|
| 745 | */ |
|
| 746 | public function testFindFilters() |
|
| 747 | { |
|
| 748 | $userDao = new TestUserDao($this->tdbmService); |
|
| 749 | $users = $userDao->getUsersByLoginStartingWith('bill'); |
|
| 750 | ||
| 751 | $this->assertCount(1, $users); |
|
| 752 | $this->assertEquals('bill.shakespeare', $users[0]->getLogin()); |
|
| 753 | } |
|
| 754 | ||
| 755 | /** |
|
| 756 | * @expectedException \TheCodingMachine\TDBM\TDBMException |
|
| @@ 931-938 (lines=8) @@ | ||
| 928 | /** |
|
| 929 | * @depends testDaoGeneration |
|
| 930 | */ |
|
| 931 | public function testFirst() |
|
| 932 | { |
|
| 933 | $userDao = new TestUserDao($this->tdbmService); |
|
| 934 | $users = $userDao->getUsersByLoginStartingWith('bill'); |
|
| 935 | ||
| 936 | $bill = $users->first(); |
|
| 937 | $this->assertEquals('bill.shakespeare', $bill->getLogin()); |
|
| 938 | } |
|
| 939 | ||
| 940 | /** |
|
| 941 | * @depends testDaoGeneration |
|