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