getUserByEmail() public method

Returns the user information (login, password hash, alias, email, date_registered, etc.)
public getUserByEmail ( string $userEmail ) : array
$userEmail string the user email
return array the user information
Exemplo n.º 1
0
 public function testGetUserByEmail()
 {
     $user = array('login' => "login", 'password' => "geqgeagae", 'email' => "*****@*****.**", 'alias' => "alias");
     $this->api->addUser($user['login'], $user['password'], $user['email'], $user['alias']);
     $userByMail = $this->api->getUserByEmail($user['email']);
     $this->assertEquals($user['login'], $userByMail['login']);
     $this->assertEquals($user['email'], $userByMail['email']);
     $this->assertEquals($user['alias'], $userByMail['alias']);
 }