protected function PageManagerRoutesTest::setUp in Page Manager 8
Same name and namespace in other branches
- 8.4 tests/src/Unit/PageManagerRoutesTest.php \Drupal\Tests\page_manager\Unit\PageManagerRoutesTest::setUp()
@covers ::__construct
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ PageManagerRoutesTest.php, line 63 - Contains \Drupal\Tests\page_manager\Unit\PageManagerRoutesTest.
Class
- PageManagerRoutesTest
- Tests the page manager route subscriber.
Namespace
Drupal\Tests\page_manager\UnitCode
protected function setUp() {
$this->pageStorage = $this
->prophesize(ConfigEntityStorageInterface::class);
$this->entityTypeManager = $this
->prophesize(EntityTypeManagerInterface::class);
$this->entityTypeManager
->getStorage('page')
->willReturn($this->pageStorage);
$this->cacheTagsInvalidator = $this
->prophesize(CacheTagsInvalidatorInterface::class);
$this->routeSubscriber = new PageManagerRoutes($this->entityTypeManager
->reveal(), $this->cacheTagsInvalidator
->reveal());
}