You are here

function SecureSiteForceAlwaysTest::testSecureSiteForceAlwaysResetSubmit in Secure Site 8

Submit password reset form.

File

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

Class

SecureSiteForceAlwaysTest
Functional tests for page requests with authentication always forced.

Namespace

Drupal\securesite\Tests\ForcedAuth

Code

function testSecureSiteForceAlwaysResetSubmit() {
  $this
    ->drupalPostForm(NULL, array(
    'name' => $this->user->name,
  ), 'E-mail new password');
  $this
    ->assertResponse(200, t('Submitting password reset form.'));
  $this
    ->assertText('Further instructions have been sent to your e-mail address.', t('Checking for password reset message.'));
}