function RevisionUserTest::setUp

Same name in this branch
  1. 9 core/modules/media/tests/src/Kernel/Views/RevisionUserTest.php \Drupal\Tests\media\Kernel\Views\RevisionUserTest::setUp()
Same name and namespace in other branches
  1. 11.x core/modules/media/tests/src/Kernel/Views/RevisionUserTest.php \Drupal\Tests\media\Kernel\Views\RevisionUserTest::setUp()
  2. 11.x core/modules/block_content/tests/src/Kernel/Views/RevisionUserTest.php \Drupal\Tests\block_content\Kernel\Views\RevisionUserTest::setUp()
  3. 10 core/modules/media/tests/src/Kernel/Views/RevisionUserTest.php \Drupal\Tests\media\Kernel\Views\RevisionUserTest::setUp()
  4. 10 core/modules/block_content/tests/src/Kernel/Views/RevisionUserTest.php \Drupal\Tests\block_content\Kernel\Views\RevisionUserTest::setUp()

File

core/modules/block_content/tests/src/Kernel/Views/RevisionUserTest.php, line 55

Class

RevisionUserTest
Tests the block_content_revision_user field.

Namespace

Drupal\Tests\block_content\Kernel\Views

Code

protected function setUp($import_test_views = TRUE) : void {
  parent::setUp($import_test_views);
  $this->installEntitySchema('block_content');
  $this->installEntitySchema('user');
  if ($import_test_views) {
    ViewTestData::createTestViews(get_class($this), [
      'block_content_test_views',
    ]);
  }
}

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