You are here

public function SecureSiteConfig403FunctionalTest::testSecureSiteConfig403ResetCurrent in Secure Site 7.2

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

Keep current access denied page when no previous setting exists.

File

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

Class

SecureSiteConfig403FunctionalTest
Functional tests for configuring access denied page.

Code

public function testSecureSiteConfig403ResetCurrent() {
  variable_set('site_403', 'site_403');
  $this
    ->drupalPost('admin/config/securesite', array(), 'Reset to defaults');
  $this
    ->assertTrue(variable_get('site_403', '') == 'site_403', t('Keeping current access denied page when no previous setting exists.'));
}