function ViewsAccessTest::setUp

Overrides ViewsSqlTest::setUp

File

tests/views_access.test, line 28

Class

ViewsAccessTest
Basic test for pluggable access.

Code

public function setUp(array $modules = array()) {
    parent::setUp($modules);
    $this->admin_user = $this->drupalCreateUser(array(
        'access all views',
    ));
    $this->web_user = $this->drupalCreateUser();
    $this->web_role = current($this->web_user->roles);
    $this->normal_role = $this->drupalCreateRole(array());
    $this->normal_user = $this->drupalCreateUser(array(
        'views_test test permission',
    ));
    $this->normal_user->roles[$this->normal_role] = $this->normal_role;
    // Reset the plugin data.
    views_fetch_plugin_data(NULL, NULL, TRUE);
}