You are here

function CDNOriginPullFarFutureTestCase::setUp in CDN 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 CDNUnitTestCase::setUp

File

tests/cdn.test, line 351
Test CDN.

Class

CDNOriginPullFarFutureTestCase

Code

function setUp() {
  parent::setUp();
  $this
    ->loadFile('cdn.basic.inc');
  $this
    ->loadFile('cdn.basic.farfuture.inc');
  $this
    ->variableSet(CDN_MODE_VARIABLE, CDN_MODE_BASIC);
  $this
    ->variableSet(CDN_BASIC_FARFUTURE_VARIABLE, TRUE);
}