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