You are here

protected function AreaOrderTest::setUpFixtures in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/tests/src/Kernel/Handler/AreaOrderTest.php \Drupal\Tests\views\Kernel\Handler\AreaOrderTest::setUpFixtures()
  2. 9 core/modules/views/tests/src/Kernel/Handler/AreaOrderTest.php \Drupal\Tests\views\Kernel\Handler\AreaOrderTest::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\Handler

Code

protected function setUpFixtures() {

  // Install the themes used for this test.
  $this->container
    ->get('theme_installer')
    ->install([
    'olivero',
  ]);
  $this
    ->placeBlock('system_branding_block', [
    'id' => 'id_olivero_branding',
    'theme' => 'olivero',
    'plugin' => 'system_branding_block',
    'weight' => 1,
  ]);
  $this
    ->placeBlock('system_powered_by_block', [
    'id' => 'id_olivero_powered',
    'theme' => 'olivero',
    'weight' => 2,
  ]);
  parent::setUpFixtures();
}