| @@ 714-721 (lines=8) @@ | ||
| 711 | /** |
|
| 712 | * @depends testDaoGeneration |
|
| 713 | */ |
|
| 714 | public function testFindFilters() |
|
| 715 | { |
|
| 716 | $userDao = new TestUserDao($this->tdbmService); |
|
| 717 | $users = $userDao->getUsersByLoginStartingWith('bill'); |
|
| 718 | ||
| 719 | $this->assertCount(1, $users); |
|
| 720 | $this->assertEquals('bill.shakespeare', $users[0]->getLogin()); |
|
| 721 | } |
|
| 722 | ||
| 723 | /** |
|
| 724 | * @expectedException \TheCodingMachine\TDBM\TDBMException |
|
| @@ 899-906 (lines=8) @@ | ||
| 896 | /** |
|
| 897 | * @depends testDaoGeneration |
|
| 898 | */ |
|
| 899 | public function testFirst() |
|
| 900 | { |
|
| 901 | $userDao = new TestUserDao($this->tdbmService); |
|
| 902 | $users = $userDao->getUsersByLoginStartingWith('bill'); |
|
| 903 | ||
| 904 | $bill = $users->first(); |
|
| 905 | $this->assertEquals('bill.shakespeare', $bill->getLogin()); |
|
| 906 | } |
|
| 907 | ||
| 908 | /** |
|
| 909 | * @depends testDaoGeneration |
|