function ContactLinkTest::setUp

Same name in other branches
  1. 8.9.x core/modules/contact/tests/src/Functional/Views/ContactLinkTest.php \Drupal\Tests\contact\Functional\Views\ContactLinkTest::setUp()
  2. 10 core/modules/contact/tests/src/Unit/ContactLinkTest.php \Drupal\Tests\contact\Unit\ContactLinkTest::setUp()
  3. 10 core/modules/contact/tests/src/Functional/Views/ContactLinkTest.php \Drupal\Tests\contact\Functional\Views\ContactLinkTest::setUp()
  4. 11.x core/modules/contact/tests/src/Unit/ContactLinkTest.php \Drupal\Tests\contact\Unit\ContactLinkTest::setUp()
  5. 11.x 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 46

Class

ContactLinkTest
Tests the contact link field.

Namespace

Drupal\Tests\contact\Functional\Views

Code

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

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