Exemplo n.º 1
0
 public function testSendingOfANotificationAfterResetOccurrs()
 {
     $account_id = TestAccountCreateAndDestroy::account_id();
     $account = AccountFactory::findById($account_id);
     PasswordResetRequest::generate($account, $this->nonce = '7778987777', false);
     $req = PasswordResetRequest::match($this->nonce);
     $final_account = $req->account();
     $this->assertNotEmpty($final_account->getActiveEmail());
     $sent = PasswordResetRequest::sendResetNotification($final_account->getActiveEmail(), false);
     $this->assertTrue($sent);
 }