protected function RevisionUserTest::setUp in Drupal 10
Same name in this branch
- 10 core/modules/media/tests/src/Kernel/Views/RevisionUserTest.php \Drupal\Tests\media\Kernel\Views\RevisionUserTest::setUp()
- 10 core/modules/block_content/tests/src/Kernel/Views/RevisionUserTest.php \Drupal\Tests\block_content\Kernel\Views\RevisionUserTest::setUp()
Same name and namespace in other branches
- 9 core/modules/block_content/tests/src/Kernel/Views/RevisionUserTest.php \Drupal\Tests\block_content\Kernel\Views\RevisionUserTest::setUp()
Parameters
bool $import_test_views: Should the views specified on the test class be imported. If you need to setup some additional stuff, like fields, you need to call false and then call createTestViews for your own.
Overrides ViewsKernelTestBase::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\ViewsCode
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',
]);
}
}