function LayoutBuilderRoutesTest::setUp
Same name in other branches
- 9 core/modules/layout_builder/tests/src/Unit/LayoutBuilderRoutesTest.php \Drupal\Tests\layout_builder\Unit\LayoutBuilderRoutesTest::setUp()
- 8.9.x core/modules/layout_builder/tests/src/Unit/LayoutBuilderRoutesTest.php \Drupal\Tests\layout_builder\Unit\LayoutBuilderRoutesTest::setUp()
- 11.x core/modules/layout_builder/tests/src/Unit/LayoutBuilderRoutesTest.php \Drupal\Tests\layout_builder\Unit\LayoutBuilderRoutesTest::setUp()
Overrides UnitTestCase::setUp
File
-
core/
modules/ layout_builder/ tests/ src/ Unit/ LayoutBuilderRoutesTest.php, line 41
Class
- LayoutBuilderRoutesTest
- @coversDefaultClass \Drupal\layout_builder\Routing\LayoutBuilderRoutes
Namespace
Drupal\Tests\layout_builder\UnitCode
protected function setUp() : void {
parent::setUp();
$this->sectionStorageManager = $this->prophesize(SectionStorageManagerInterface::class);
$this->routeBuilder = new LayoutBuilderRoutes($this->sectionStorageManager
->reveal());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.