You are here

function AkamaiHomepageTestCase::setUp in Akamai 8

Same name and namespace in other branches
  1. 8.2 akamai.test \AkamaiHomepageTestCase::setUp()
  2. 7.3 akamai.test \AkamaiHomepageTestCase::setUp()
  3. 7 akamai.test \AkamaiHomepageTestCase::setUp()
  4. 7.2 akamai.test \AkamaiHomepageTestCase::setUp()

File

./akamai.test, line 131
Akamai tests.

Class

AkamaiHomepageTestCase
Test basic API.

Code

function setUp() {
  parent::setUp('akamai');
  $user = $this
    ->drupalCreateUser(array(
    'purge akamai cache',
  ));
  $this
    ->drupalLogin($user);
  variable_set('akamai_service_class', 'RecordingCacheControlClient');
  $this->node = $this
    ->drupalCreateNode(array(
    'type' => 'page',
  ));
  $this->homepage = "node/{$this->node->nid}";
  variable_set('site_frontpage', $this->homepage);
}