You are here

public function SecureSiteConfig403FunctionalTest::testSecureSiteConfig403ResetPrevious in Secure Site 7.2

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

Restore previous access denied page.

File

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

Class

SecureSiteConfig403FunctionalTest
Functional tests for configuring access denied page.

Code

public function testSecureSiteConfig403ResetPrevious() {
  variable_set('securesite_403', 'site_403');
  $this
    ->drupalPost('admin/config/development/logging', array(), 'Reset to defaults');
  $this
    ->assertTrue(variable_get('site_403', '') == 'site_403', t('Restoring previous access denied page.'));
}