function UserViewsDataTest::setUp

Same name in other branches
  1. 9 core/modules/user/tests/src/Kernel/Views/UserViewsDataTest.php \Drupal\Tests\user\Kernel\Views\UserViewsDataTest::setUp()
  2. 11.x core/modules/user/tests/src/Kernel/Views/UserViewsDataTest.php \Drupal\Tests\user\Kernel\Views\UserViewsDataTest::setUp()

Overrides KernelTestBase::setUp

File

core/modules/user/tests/src/Kernel/Views/UserViewsDataTest.php, line 44

Class

UserViewsDataTest
Contains tests related to the views data for the user entity type.

Namespace

Drupal\Tests\user\Kernel\Views

Code

protected function setUp() : void {
    parent::setUp();
    $this->viewsData = $this->container
        ->get('views.views_data');
    $this->entityFieldManager = $this->container
        ->get('entity_field.manager');
}

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