You are here

public function ApeTestHelper::setUp in Advanced Page Expiration 7

Perform setup before testing.

Parameters

array $modules: List of modules required for testing.

Overrides DrupalWebTestCase::setUp

File

./ape.test, line 29
Test integration for the advanced page expiration module.

Class

ApeTestHelper
Helper test class with some added functions for testing.

Code

public function setUp($modules = array()) {
  $modules[] = 'ape';
  $modules[] = 'path';
  $modules[] = 'user';
  $modules[] = 'common_test';
  $modules[] = 'ape_test';
  parent::setUp($modules);
  variable_set('clean_url', 1);
  variable_set('cache', 1);
  variable_set('page_cache_maximum_age', 2592000);
  variable_set('ape_alternatives', '<front>');
  variable_set('ape_alternative_lifetime', 60);
  variable_set('ape_exclusions', 'user/login');
  variable_set('ape_301_lifetime', 1800);
  variable_set('ape_302_lifetime', 600);
  variable_set('ape_404_lifetime', 3600);
}