function AreaOrderTest::setUpFixtures

Same name in other branches
  1. 9 core/modules/views/tests/src/Kernel/Handler/AreaOrderTest.php \Drupal\Tests\views\Kernel\Handler\AreaOrderTest::setUpFixtures()
  2. 10 core/modules/views/tests/src/Kernel/Handler/AreaOrderTest.php \Drupal\Tests\views\Kernel\Handler\AreaOrderTest::setUpFixtures()
  3. 11.x 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 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([
        '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();
}

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