You are here

public function OptimizelyTestDefaultSettingsCase::setUp in Optimizely 7.3

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

OptimizelyTestDefaultSettingsCase setUp().

Overrides DrupalWebTestCase::setUp

File

./optimizely.test, line 908
Optimizely Tests

Class

OptimizelyTestDefaultSettingsCase
* Test if the default project settings work correctly.

Code

public function setUp() {
  parent::setUp('optimizely');

  // Enable any modules required for the test
  // Create and log in our user. The user has the arbitrary privilege
  // 'extra special edit any Optimizely project' which the code uses
  // to grant access.
  $this->privileged_user = $this
    ->drupalCreateUser(array(
    'administer optimizely',
  ));
  $this
    ->drupalLogin($this->privileged_user);
}