WizardTestBase.php 593 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php

/**
 * @file
 * Definition of Drupal\views\Tests\WizardTestBase.
 */

namespace Drupal\views\Tests;

use ViewsSqlTest;

/**
 * Views UI wizard tests.
 */
15
abstract class WizardTestBase extends ViewsSqlTest {
16
17
18
19
20
21
22
23
24
25
26
  protected $profile = 'standard';

  function setUp() {
    // Enable views_ui.
    parent::setUp('views_ui');

    // 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);
  }
}