protected function AreaEntityTest::setUpFixtures in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/tests/src/Kernel/Handler/AreaEntityTest.php \Drupal\Tests\views\Kernel\Handler\AreaEntityTest::setUpFixtures()
- 9 core/modules/views/tests/src/Kernel/Handler/AreaEntityTest.php \Drupal\Tests\views\Kernel\Handler\AreaEntityTest::setUpFixtures()
File
- core/
modules/ views/ tests/ src/ Kernel/ Handler/ AreaEntityTest.php, line 47
Class
- AreaEntityTest
- Tests the generic entity area handler.
Namespace
Drupal\Tests\views\Kernel\HandlerCode
protected function setUpFixtures() {
// Install the themes used for this test.
$this->container
->get('theme_installer')
->install([
'olivero',
]);
$this->container
->get('config.factory')
->getEditable('system.theme')
->set('default', 'olivero')
->save();
$this
->installEntitySchema('user');
$this
->installEntitySchema('entity_test');
$this
->installConfig([
'entity_test',
]);
$this
->placeBlock('system_main_block', [
'id' => 'test_block',
]);
parent::setUpFixtures();
}