public function SecureSiteFunctionDialogPageUnitTest::testSecureSiteDialogPageBoth in Secure Site 7.2
Same name and namespace in other branches
- 6.2 securesite.test \SecureSiteFunctionDialogPageUnitTest::testSecureSiteDialogPageBoth()
Check output with both log-in and password reset enabled.
File
- ./
securesite.test, line 817 - Tests for Secure Site module.
Class
- SecureSiteFunctionDialogPageUnitTest
- Unit tests for _securesite_dialog_page().
Code
public function testSecureSiteDialogPageBoth() {
variable_set('securesite_type', array(
SECURESITE_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 enabled.'));
}