class SecureSiteCacheTest in Secure Site 5
Same name and namespace in other branches
- 6 tests/securesite.test \SecureSiteCacheTest
Hierarchy
- class \DrupalTestCase extends \WebTestCase
- class \SecureSiteTest
- class \SecureSiteCacheTest
- class \SecureSiteTest
Expanded class hierarchy of SecureSiteCacheTest
File
- tests/
securesite.test, line 765 - 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DrupalTestCase:: |
property | |||
DrupalTestCase:: |
property | |||
DrupalTestCase:: |
property | |||
DrupalTestCase:: |
property | |||
DrupalTestCase:: |
property | |||
DrupalTestCase:: |
function | Will trigger a pass if both parameters refer to different objects. Fail otherwise. | ||
DrupalTestCase:: |
function | Will trigger a pass if the two parameters have the same value only. Otherwise a fail. | ||
DrupalTestCase:: |
function | Confirms that an error has occurred and optionally that the error text matches exactly. | ||
DrupalTestCase:: |
function | Confirms that an error has occurred and that the error text matches a Perl regular expression. | ||
DrupalTestCase:: |
function | Will trigger a pass if the two parameters have the same value and same type. Otherwise a fail. | ||
DrupalTestCase:: |
function | Type and class test. Will pass if class matches the type name or is a subclass or if not an object, but the type is correct. | ||
DrupalTestCase:: |
function | Confirms that no errors have occurred so far in the test method. | ||
DrupalTestCase:: |
function | Type and class mismatch test. Will pass if class name or underling type does not match the one specified. | ||
DrupalTestCase:: |
function | Will trigger a pass if the two parameters have a different value. Otherwise a fail. | ||
DrupalTestCase:: |
function | Will trigger a pass if the two parameters have the different value or different type. | ||
DrupalTestCase:: |
function | Will be true if the value is set. | ||
DrupalTestCase:: |
function | Will trigger a pass if the Perl regex pattern is not present in subject. Fail if found. | ||
DrupalTestCase:: |
function | Will trigger a pass if the raw text is NOT found on the loaded page Fail otherwise. | ||
DrupalTestCase:: |
function | Will be true if the value is null. | ||
DrupalTestCase:: |
function | Will trigger a pass if both parameters refer to the same object. Fail otherwise. | ||
DrupalTestCase:: |
function | Will trigger a pass if the Perl regex pattern is found in the subject. Fail otherwise. | ||
DrupalTestCase:: |
function | Will trigger a pass if the raw text is found on the loaded page Fail otherwise. | ||
DrupalTestCase:: |
function | Follows a link by name. Will click the first link found with this link text by default, or a later one if an index is given. Match is case insensitive with normalised space. Does make assertations if the click was sucessful or not and it does… | ||
DrupalTestCase:: |
function | @abstract Checks to see if we need to send a http-auth header to authenticate when browsing a site. | ||
DrupalTestCase:: |
function | Create a role / perm combination specified by permissions | ||
DrupalTestCase:: |
function | Creates a user / role / permissions combination specified by permissions | ||
DrupalTestCase:: |
function | @abstract Brokder for the get function adds the authentication headers if necessary @author Earnest Berry III <earnest.berry@gmail.com> | ||
DrupalTestCase:: |
function | @TODO: needs documentation | ||
DrupalTestCase:: |
function | Logs in a user with the internal browser | ||
DrupalTestCase:: |
function | Disables a drupal module | ||
DrupalTestCase:: |
function | Enables a drupal module | ||
DrupalTestCase:: |
function | Do a post request on a drupal page. It will be done as usual post request with SimpleBrowser | ||
DrupalTestCase:: |
function | @abstract Broker for the post function adds the authentication headers if necessary @author Earnest Berry III <earnest.berry@gmail.com> | ||
DrupalTestCase:: |
function | |||
DrupalTestCase:: |
function | Set a druapl variable and keep track of the changes for tearDown() | ||
DrupalTestCase:: |
function | Generates a random string, to be used as name or whatever | ||
DrupalTestCase:: |
function | Just some info for the reporter | ||
DrupalTestCase:: |
function | tearDown implementation, setting back switched modules etc | 1 | |
SecureSiteCacheTest:: |
function |
Drupal SimpleTest method: return metadata about the test Overrides SecureSiteTest:: |
||
SecureSiteCacheTest:: |
function |
Overrides SecureSiteTest:: |
||
SecureSiteTest:: |
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:: |
function | Test blacklist | ||
SecureSiteTest:: |
function | Test the cron bypass | ||
SecureSiteTest:: |
function | Tests for _securesite_filter_check() | ||
SecureSiteTest:: |
function | Check that guest mode is correctly disabled when no username and password are set | ||
SecureSiteTest:: |
function | Check that users get the correct page after previously logging in as a guest | ||
SecureSiteTest:: |
function | Check that users get the correct page after previously logging in as a guest and not forcing a guest logout | ||
SecureSiteTest:: |
function | Check that guests can login when guest mode is enabled (a username and password are set) | ||
SecureSiteTest:: |
function | Check that guests get the correct page after previously logging in as a user | ||
SecureSiteTest:: |
function | Check that guests are logged out if user had logged in after being a guest | ||
SecureSiteTest:: |
function | Check that anonymous users get the correct headers when Secure Site is disabled | ||
SecureSiteTest:: |
function | Check that anonymous users get the correct headers when using the HTML login form | ||
SecureSiteTest:: |
function | Check that anonymous users get the correct headers when using HTTP Auth | ||
SecureSiteTest:: |
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:: |
function | Check that privileged users can login with HTTP Auth enabled | ||
SecureSiteTest:: |
function | Check that unprivileged users don't get HTTP Auth when accessing unsecured pages | ||
SecureSiteTest:: |
function | Check that unprivileged users get HTTP Auth when accessing secure pages | ||
SecureSiteTest:: |
function | Check that the user doesn't get stuck on the logout page | ||
SecureSiteTest:: |
function | Check that users are able to login and logout from unsecured portions of the site after using the normal Drupal login form | ||
SecureSiteTest:: |
function | Check prerequisites | ||
SecureSiteTest:: |
function | Check that login works normally after previous login and logout when first securing <front>, then not | ||
SecureSiteTest:: |
function | Check that login works normally after previous login and logout using the normal HTML login form | ||
SecureSiteTest:: |
function | Check that login works normally after previous login and logout when first not securing <front>, then securing it | ||
SecureSiteTest:: |
function | Check that the realm is correct when using the HTTP Auth method with the default SimpleTest User Agent string | ||
SecureSiteTest:: |
function | Check that the realm is correct when using the HTTP Auth method with Firefox's User Agent string | ||
SecureSiteTest:: |
function | Check that the realm is correct when using the HTTP Auth method with Internet Explorer's User Agent string | ||
SecureSiteTest:: |
function | Check that the realm is correct when using the HTTP Auth method with Opera's User Agent string | ||
SecureSiteTest:: |
function | Check that the realm is correct when using the HTTP Auth method with Safari's User Agent string | ||
SecureSiteTest:: |
function | Test whitelist |