function NodeDisplayConfigurableTest::setUp

Overrides NodeTestBase::setUp

File

core/modules/rdf/tests/src/Functional/Node/NodeDisplayConfigurableTest.php, line 34

Class

NodeDisplayConfigurableTest
Tests making node base fields' displays configurable.

Namespace

Drupal\Tests\rdf\Functional\Node

Code

protected function setUp() : void {
    parent::setUp();
    $data = $this->getProvidedData();
    $theme = reset($data);
    \Drupal::service('theme_installer')->install([
        $theme,
    ]);
    $this->config('system.theme')
        ->set('default', $theme)
        ->save();
    $settings = [
        'theme' => $theme,
        'region' => 'content',
        'weight' => -100,
    ];
    $this->drupalPlaceBlock('page_title_block', $settings);
}

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