コード例 #1
0
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     $this->panelsDisplay = $this->prophesize(PanelsDisplayVariant::class);
     $this->pageVariant = $this->prophesize(PageVariantInterface::class);
     $this->pageVariant->getVariantPlugin()->willReturn($this->panelsDisplay->reveal());
     $this->pageVariantNotPanels = $this->prophesize(PageVariantInterface::class);
     $this->pageVariantNotPanels->getContexts()->shouldNotBeCalled();
     $non_panels_variant = $this->prophesize(HttpStatusCodeDisplayVariant::class);
     $this->pageVariantNotPanels->getVariantPlugin()->willReturn($non_panels_variant->reveal());
     $this->storage = $this->prophesize(EntityStorageInterface::class);
     $this->entityTypeManager = $this->prophesize(EntityTypeManagerInterface::class);
     $this->entityTypeManager->getStorage('page_variant')->willReturn($this->storage->reveal());
 }