function AreaOrderTest::setUpFixtures

Same name and namespace in other branches
  1. 9 core/modules/views/tests/src/Kernel/Handler/AreaOrderTest.php \Drupal\Tests\views\Kernel\Handler\AreaOrderTest::setUpFixtures()
  2. 8.9.x core/modules/views/tests/src/Kernel/Handler/AreaOrderTest.php \Drupal\Tests\views\Kernel\Handler\AreaOrderTest::setUpFixtures()
  3. 10 core/modules/views/tests/src/Kernel/Handler/AreaOrderTest.php \Drupal\Tests\views\Kernel\Handler\AreaOrderTest::setUpFixtures()

Overrides ViewsKernelTestBase::setUpFixtures

File

core/modules/views/tests/src/Kernel/Handler/AreaOrderTest.php, line 38

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();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.