You are here

function SecureSiteForceAlwaysTest::testSecureSiteForceAlwaysResetInvalid in Secure Site 8

Try invalid password reset URL.

File

src/Tests/ForcedAuth/SecureSiteForceAlwaysTest.php, line 96
Contains Drupal\securesite\Tests\ForcedAuth\SecureSiteForceAlwaysTest

Class

SecureSiteForceAlwaysTest
Functional tests for page requests with authentication always forced.

Namespace

Drupal\securesite\Tests\ForcedAuth

Code

function testSecureSiteForceAlwaysResetInvalid() {
  $this
    ->drupalGet('user/reset/' . $this->user->uid);
  $this
    ->assertResponse(200, t('Trying invalid password reset URL.'));
  $this
    ->assertText('You have tried to use an invalid one-time log-in link.', t('Checking for error message.'));
}