/** * * @param string $type * @return User */ public function getByType($type) { return $this->dao->getByType($type); }
public function testsearchUser() { $this->insertTestUsers(); $ret = $this->userDAO->searchUser("Alexander"); $this->assertEquals($ret[0]->getVorname(), "Alexander"); }