function EntityArgumentTest::setUp

Same name in other branches
  1. 10 core/modules/views/tests/src/Functional/Plugin/EntityArgumentTest.php \Drupal\Tests\views\Functional\Plugin\EntityArgumentTest::setUp()

Overrides TaxonomyTestBase::setUp

File

core/modules/views/tests/src/Functional/Plugin/EntityArgumentTest.php, line 47

Class

EntityArgumentTest
Tests the handler of the view: entity target argument.

Namespace

Drupal\Tests\views\Functional\Plugin

Code

protected function setUp($import_test_views = TRUE, $modules = []) : void {
    parent::setUp($import_test_views, $modules);
    ViewTestData::createTestViews(static::class, [
        'views_test_config',
    ]);
    // Create an administrative user.
    $this->adminUser = $this->drupalCreateUser([
        'administer taxonomy',
        'bypass node access',
    ]);
    $this->drupalLogin($this->adminUser);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.