You are here

public function SecureSiteForceAlwaysFunctionalTest::testSecureSiteForceAlwaysResetSubmit in Secure Site 7.2

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

Submit password reset form.

File

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

Class

SecureSiteForceAlwaysFunctionalTest
Functional tests for page requests with authentication always forced.

Code

public 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.'));
}