You are here

public function OverrideSectionsTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 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

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