You are here

class SecureSiteCacheTest in Secure Site 6

Same name and namespace in other branches
  1. 5 tests/securesite.test \SecureSiteCacheTest

Hierarchy

Expanded class hierarchy of SecureSiteCacheTest

File

tests/securesite.test, line 768
Secure Site module unit tests

View source
class SecureSiteCacheTest extends SecureSiteTest {
  function get_info() {
    return array(
      'name' => t('Secure Site (Caching enabled)'),
      'desc' => t('Executes the Secure Site module test suite with caching enabled.'),
      'group' => t('Secure Site module'),
    );
  }
  function setUp() {

    // Always call the setUp() function from the parent class.  Do it first
    // here so the cache value is correct below.
    parent::setUp();

    // Enable cache
    $this
      ->drupalVariableSet('cache', CACHE_NORMAL);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
SecureSiteCacheTest::get_info function Drupal SimpleTest method: return metadata about the test Overrides SecureSiteTest::get_info
SecureSiteCacheTest::setUp function Overrides SecureSiteTest::setUp
SecureSiteTest::testAccessDenied function Check that users get an access denied warning when accessing secured portions of the site if they've already logged in and don't have access to the secure portion
SecureSiteTest::testBlacklist function Test blacklist
SecureSiteTest::testBypassCron function Test the cron bypass
SecureSiteTest::testFilterCheck function Tests for _securesite_filter_check()
SecureSiteTest::testGuestDisabled function Check that guest mode is correctly disabled when no username and password are set
SecureSiteTest::testGuestFirstClean function Check that users get the correct page after previously logging in as a guest
SecureSiteTest::testGuestFirstUnclean function Check that users get the correct page after previously logging in as a guest and not forcing a guest logout
SecureSiteTest::testGuestLogin function Check that guests can login when guest mode is enabled (a username and password are set)
SecureSiteTest::testGuestSecond function Check that guests get the correct page after previously logging in as a user
SecureSiteTest::testGuestUserLogout function Check that guests are logged out if user had logged in after being a guest
SecureSiteTest::testLoginAnonymousDisabled function Check that anonymous users get the correct headers when Secure Site is disabled
SecureSiteTest::testLoginAnonymousHTML function Check that anonymous users get the correct headers when using the HTML login form
SecureSiteTest::testLoginAnonymousHTTP function Check that anonymous users get the correct headers when using HTTP Auth
SecureSiteTest::testLoginHTTPDeprecated function Check that using the deprecated HTTP Auth alternative method doesn't cause sites to be inaccessible (they should be accessible to anonymous users)
SecureSiteTest::testLoginPrivilegedHTTP function Check that privileged users can login with HTTP Auth enabled
SecureSiteTest::testLoginUnprivileged function Check that unprivileged users don't get HTTP Auth when accessing unsecured pages
SecureSiteTest::testLoginUnprivilegedHTTP function Check that unprivileged users get HTTP Auth when accessing secure pages
SecureSiteTest::testLogoutRedirect function Check that the user doesn't get stuck on the logout page
SecureSiteTest::testLogoutUnsecure function Check that users are able to login and logout from unsecured portions of the site after using the normal Drupal login form
SecureSiteTest::testPrerequisites function Check prerequisites
SecureSiteTest::testRepeatLoginSecureFirst function Check that login works normally after previous login and logout when first securing <front>, then not
SecureSiteTest::testRepeatLoginUnsecure function Check that login works normally after previous login and logout using the normal HTML login form
SecureSiteTest::testRepeatLoginUnsecureFirst function Check that login works normally after previous login and logout when first not securing <front>, then securing it
SecureSiteTest::testUserAgentDefault function Check that the realm is correct when using the HTTP Auth method with the default SimpleTest User Agent string
SecureSiteTest::testUserAgentFirefox function Check that the realm is correct when using the HTTP Auth method with Firefox's User Agent string
SecureSiteTest::testUserAgentIE function Check that the realm is correct when using the HTTP Auth method with Internet Explorer's User Agent string
SecureSiteTest::testUserAgentOpera function Check that the realm is correct when using the HTTP Auth method with Opera's User Agent string
SecureSiteTest::testUserAgentSafari function Check that the realm is correct when using the HTTP Auth method with Safari's User Agent string
SecureSiteTest::testWhitelist function Test whitelist