public function AuthcacheP13nTestObjectResourcePreprocessorCase::setUp in Authenticated User Page Caching (Authcache) 7.2
Sets up unit test environment.
Unlike DrupalWebTestCase::setUp(), DrupalUnitTestCase::setUp() does not install modules because tests are performed without accessing the database. Any required files must be explicitly included by the child class setUp() method.
Overrides DrupalUnitTestCase::setUp
File
- modules/
authcache_p13n/ tests/ authcache_p13n.object-resource-preprocessor.test, line 27 - Define test cases for object factory.
Class
- AuthcacheP13nTestObjectResourcePreprocessorCase
- Tests for object factory.
Code
public function setUp() {
parent::setUp();
require_once __DIR__ . '/../includes/AuthcacheP13nObjectResourcePreprocessor.inc';
$this
->resetPreprocessorInvocations();
}