protected function BetterExposedFiltersKernelTestBase::setUp in Better Exposed Filters 8.4
Same name and namespace in other branches
- 8.5 tests/src/Kernel/BetterExposedFiltersKernelTestBase.php \Drupal\Tests\better_exposed_filters\Kernel\BetterExposedFiltersKernelTestBase::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
- tests/
src/ Kernel/ BetterExposedFiltersKernelTestBase.php, line 36
Class
- BetterExposedFiltersKernelTestBase
- Defines a base class for Better Exposed Filters kernel testing.
Namespace
Drupal\Tests\better_exposed_filters\KernelCode
protected function setUp($import_test_views = TRUE) {
parent::setUp();
$this
->installSchema('node', [
'node_access',
]);
$this
->installEntitySchema('node');
$this
->installEntitySchema('taxonomy_vocabulary');
$this
->installEntitySchema('taxonomy_term');
\Drupal::moduleHandler()
->loadInclude('bef_test', 'install');
bef_test_install();
$this
->installConfig([
'system',
'field',
'node',
'taxonomy',
'bef_test',
]);
}