function ViewsUIWizardHelper::setUp

Overrides DrupalWebTestCase::setUp

1 call to ViewsUIWizardHelper::setUp()
ViewsUIWizardTaggedWithTestCase::setUp in tests/views_ui.test
Sets up a Drupal site for running functional and integration tests.
1 method overrides ViewsUIWizardHelper::setUp()
ViewsUIWizardTaggedWithTestCase::setUp in tests/views_ui.test
Sets up a Drupal site for running functional and integration tests.

File

tests/views_ui.test, line 16

Class

ViewsUIWizardHelper
Views UI wizard tests.

Code

public function setUp(array $modules = array()) {
    $modules[] = 'views_ui';
    parent::setUp($modules);
    // Create and log in a user with administer views permission.
    $views_admin = $this->drupalCreateUser(array(
        'administer views',
        'administer blocks',
        'bypass node access',
        'access user profiles',
        'view revisions',
    ));
    $this->drupalLogin($views_admin);
}