/** * * @param NKUser $userData */ private function join_or_add(NKUser $userData) { $email_users = qa_db_user_find_by_email($userData->email()); if (count($email_users) === 1) { $this->join_user_data($email_users[0], $userData); } qa_log_in_external_user(Q2ANKConnect::LOGIN_SOURCE, $userData->id(), array('email' => $userData->email(), 'avatar' => $userData->thumbnailUrl(), 'name' => $userData->name(), 'confirmed' => true, 'handle' => $this->generateUserHandle($userData))); }
/** * */ public function testEmail() { $this->assertNull($this->object->email()); }
/** * */ public function testEmail() { $this->assertSame('*****@*****.**', $this->object->email()); }