protected function BlazyViewsFileTest::setUp in Blazy 8
Same name and namespace in other branches
- 8.2 tests/src/Kernel/Views/BlazyViewsFileTest.php \Drupal\Tests\blazy\Kernel\Views\BlazyViewsFileTest::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 BlazyViewsTestBase::setUp
File
- tests/
src/ Kernel/ Views/ BlazyViewsFileTest.php, line 34
Class
- BlazyViewsFileTest
- Test Blazy Views integration.
Namespace
Drupal\Tests\blazy\Kernel\ViewsCode
protected function setUp($import_test_views = TRUE) {
parent::setUp($import_test_views);
$this->entityFieldName = 'field_entity_test';
$this->entityPluginId = 'blazy_entity_test';
$this->targetBundle = 'bundle_target_test';
$this->targetBundles = [
$this->targetBundle,
];
}