You are here

protected function OverrideSectionsTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/tests/src/Functional/Rest/OverrideSectionsTest.php \Drupal\Tests\layout_builder\Functional\Rest\OverrideSectionsTest::setUp()
  2. 9 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

protected function setUp() : void {
  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();
}