You are here

function SecureSiteFunctionDialogPageUnitTest::testSecureSiteDialogPageNeither in Secure Site 6.2

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

Check output with both log-in and password reset disabled.

File

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

Class

SecureSiteFunctionDialogPageUnitTest
Unit tests for _securesite_dialog_page().

Code

function testSecureSiteDialogPageNeither() {
  variable_set('securesite_reset_form', '');
  $page = _securesite_dialog_page();
  $login = strpos($page, 'id="securesite-user-login"') === FALSE;
  $reset = strpos($page, 'id="securesite-user-pass"') === FALSE;
  $message = strpos($page, 'Reload the page to try logging in again.') === FALSE;
  $this
    ->assertTrue($login && $reset && !$message, t('Checking output with both log-in and password reset disabled.'));
}