You are here

protected function ContactLinkTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/contact/tests/src/Functional/Views/ContactLinkTest.php \Drupal\Tests\contact\Functional\Views\ContactLinkTest::setUp()

Overrides ViewTestBase::setUp

File

core/modules/contact/tests/src/Functional/Views/ContactLinkTest.php, line 47

Class

ContactLinkTest
Tests the contact link field.

Namespace

Drupal\Tests\contact\Functional\Views

Code

protected function setUp($import_test_views = TRUE) : void {
  parent::setUp($import_test_views);
  ViewTestData::createTestViews(static::class, [
    'contact_test_views',
  ]);
  $this->userData = $this->container
    ->get('user.data');
}