protected function ViewsIntegrationTest::setUp in Drupal 9
Same name in this branch
- 9 core/modules/responsive_image/tests/src/Functional/ViewsIntegrationTest.php \Drupal\Tests\responsive_image\Functional\ViewsIntegrationTest::setUp()
- 9 core/modules/dblog/tests/src/Kernel/Views/ViewsIntegrationTest.php \Drupal\Tests\dblog\Kernel\Views\ViewsIntegrationTest::setUp()
Same name and namespace in other branches
- 8 core/modules/dblog/tests/src/Kernel/Views/ViewsIntegrationTest.php \Drupal\Tests\dblog\Kernel\Views\ViewsIntegrationTest::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/ dblog/ tests/ src/ Kernel/ Views/ ViewsIntegrationTest.php, line 39
Class
- ViewsIntegrationTest
- Tests the views integration of dblog module.
Namespace
Drupal\Tests\dblog\Kernel\ViewsCode
protected function setUp($import_test_views = TRUE) : void {
parent::setUp();
$this
->installEntitySchema('user');
$this
->installSchema('dblog', [
'watchdog',
]);
ViewTestData::createTestViews(static::class, [
'dblog_test_views',
]);
}