public function OptimizelyTestIncludeSnippetCase::setUp in Optimizely 7.2
Same name and namespace in other branches
- 7.3 optimizely.test \OptimizelyTestIncludeSnippetCase::setUp()
OptimizelyTestIncludeSnippetCase setUp().
Overrides DrupalWebTestCase::setUp
File
- ./
optimizely.test, line 969 - Optimizely Tests
Class
- OptimizelyTestIncludeSnippetCase
- * Test if snippet is included in path when not using aliases.
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',
'create page content',
'edit own page content',
'administer url aliases',
'create url aliases',
));
$this
->drupalLogin($this->privileged_user);
}