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