You are here

protected function AuthcacheWebTestCase::assertAuthcachePrecluded in Authenticated User Page Caching (Authcache) 7.2

Test whether the preceeding request did hit an preclusion rule.

1 call to AuthcacheWebTestCase::assertAuthcachePrecluded()
AuthcachePolicyTestCase::testPreclusionRules in ./authcache.test
Test preclusion rules.

File

./authcache.test, line 213
Tests for system.module.

Class

AuthcacheWebTestCase
Helper class for module test cases.

Code

protected function assertAuthcachePrecluded($with_message = NULL) {
  if ($with_message) {
    $this
      ->assertEqual($with_message, variable_get('authcache_test_authcache_precluded'));
  }
  else {
    $this
      ->assertNotEqual(NULL, variable_get('authcache_test_authcache_precluded'));
  }
}