You are here

public function ResourceHintsWebTestCase::setUp in Resource Hints 7

Same name and namespace in other branches
  1. 7.2 resource_hints.test \ResourceHintsWebTestCase::setUp()

Implements setUp().

Overrides DrupalWebTestCase::setUp

File

./resource_hints.test, line 28
Tests for resource hints module.

Class

ResourceHintsWebTestCase
Test case.

Code

public function setUp() {
  parent::setUp('resource_hints');
  $admin_user = $this
    ->drupalCreateUser(array(
    'access administration pages',
    'administer nodes',
    'administer site configuration',
    'administer resource hints',
  ));
  $this
    ->drupalLogin($admin_user);
}