You are here

protected function LayoutBuilderRoutesTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/tests/src/Unit/LayoutBuilderRoutesTest.php \Drupal\Tests\layout_builder\Unit\LayoutBuilderRoutesTest::setUp()
  2. 9 core/modules/layout_builder/tests/src/Unit/LayoutBuilderRoutesTest.php \Drupal\Tests\layout_builder\Unit\LayoutBuilderRoutesTest::setUp()

File

core/modules/layout_builder/tests/src/Unit/LayoutBuilderRoutesTest.php, line 39

Class

LayoutBuilderRoutesTest
@coversDefaultClass \Drupal\layout_builder\Routing\LayoutBuilderRoutes

Namespace

Drupal\Tests\layout_builder\Unit

Code

protected function setUp() : void {
  parent::setUp();
  $this->sectionStorageManager = $this
    ->prophesize(SectionStorageManagerInterface::class);
  $this->routeBuilder = new LayoutBuilderRoutes($this->sectionStorageManager
    ->reveal());
}