protected function AreaOrderTest::setUpFixtures in Drupal 9
Same name and namespace in other branches
- 8 core/modules/views/tests/src/Kernel/Handler/AreaOrderTest.php \Drupal\Tests\views\Kernel\Handler\AreaOrderTest::setUpFixtures()
Sets up the configuration and schema of views and views_test_data modules.
Because the schema of views_test_data.module is dependent on the test using it, it cannot be enabled normally.
Overrides ViewsKernelTestBase::setUpFixtures
File
- core/
modules/ views/ tests/ src/ Kernel/ Handler/ AreaOrderTest.php, line 36
Class
- AreaOrderTest
- Tests the view area handler.
Namespace
Drupal\Tests\views\Kernel\HandlerCode
protected function setUpFixtures() {
// Install the themes used for this test.
$this->container
->get('theme_installer')
->install([
'bartik',
]);
$this
->placeBlock('system_branding_block', [
'id' => 'bartik_branding',
'theme' => 'bartik',
'plugin' => 'system_branding_block',
'weight' => 1,
]);
$this
->placeBlock('system_powered_by_block', [
'id' => 'bartik_powered',
'theme' => 'bartik',
'weight' => 2,
]);
parent::setUpFixtures();
}