Ejemplo n.º 1
0
 public function testFindAll()
 {
     // First persist the user
     $this->user->save();
     $userList = $this->userMapper->findAll(array('country' => 'ES'));
     $this->assertInstanceOf('\\Application\\Model\\ListResultModel', $userList);
     $users = $userList->getItems();
     $this->assertNotEmpty($users);
     $this->assertGreaterThanOrEqual(1, $userList->getCount());
     foreach ($users as $user) {
         $this->assertInstanceOf('\\Application\\Model\\UserModel', $user);
     }
 }