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