You are here

function SecureSiteForceAlwaysFunctionalTest::testSecureSiteForceAlwaysResetSubmit in Secure Site 6.2

Same name and namespace in other branches
  1. 7.2 securesite.test \SecureSiteForceAlwaysFunctionalTest::testSecureSiteForceAlwaysResetSubmit()

Submit password reset form.

File

./securesite.test, line 986
Tests for Secure Site module.

Class

SecureSiteForceAlwaysFunctionalTest
Functional tests for page requests with authentication always forced.

Code

function testSecureSiteForceAlwaysResetSubmit() {
  $this
    ->drupalPost(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.'));
}