function OverrideSectionsTest::setUp
Same name in other branches
- 9 core/modules/layout_builder/tests/src/Functional/Rest/OverrideSectionsTest.php \Drupal\Tests\layout_builder\Functional\Rest\OverrideSectionsTest::setUp()
- 8.9.x core/modules/layout_builder/tests/src/Functional/Rest/OverrideSectionsTest.php \Drupal\Tests\layout_builder\Functional\Rest\OverrideSectionsTest::setUp()
- 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 33
Class
- OverrideSectionsTest
- Tests that override layout sections are not exposed via the REST API.
Namespace
Drupal\Tests\layout_builder\Functional\RestCode
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();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.