function OverrideSectionsTest::setUp

Same name in other branches
  1. 9 core/modules/layout_builder/tests/src/Functional/Rest/OverrideSectionsTest.php \Drupal\Tests\layout_builder\Functional\Rest\OverrideSectionsTest::setUp()
  2. 10 core/modules/layout_builder/tests/src/Functional/Rest/OverrideSectionsTest.php \Drupal\Tests\layout_builder\Functional\Rest\OverrideSectionsTest::setUp()
  3. 11.x core/modules/layout_builder/tests/src/Functional/Rest/OverrideSectionsTest.php \Drupal\Tests\layout_builder\Functional\Rest\OverrideSectionsTest::setUp()

Overrides LayoutRestTestBase::setUp

File

core/modules/layout_builder/tests/src/Functional/Rest/OverrideSectionsTest.php, line 31

Class

OverrideSectionsTest
Tests that override layout sections are not exposed via the REST API.

Namespace

Drupal\Tests\layout_builder\Functional\Rest

Code

public function setUp() {
    parent::setUp();
    // @todo Figure why field definitions have to cleared in
    //   https://www.drupal.org/project/drupal/issues/2985882.
    $this->container
        ->get('entity_field.manager')
        ->clearCachedFieldDefinitions();
}

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