You are here

public function SecureSiteFunctionForcedUnitTest::testSecureSiteFunctionForced403 in Secure Site 7.2

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

Check output with authentication forced on restricted pages.

File

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

Class

SecureSiteFunctionForcedUnitTest
Unit tests for _securesite_forced().

Code

public function testSecureSiteFunctionForced403() {
  variable_set('securesite_enabled', SECURESITE_403);
  variable_set('securesite_403', variable_get('site_403', ''));
  variable_set('site_403', 'securesite_403');
  $this
    ->assertFalse(_securesite_forced(), t('Checking output with authentication forced on restricted pages.'));
}