Esempio n. 1
0
 function it_has_immutable_displayables_provided_in_content(Content $content, Displayables $displayables)
 {
     $content->getDisplayables()->willReturn($displayables);
     $this->getDisplayables()->shouldBeAnInstanceOf(ImmutableCollection::class);
 }
Esempio n. 2
0
 function it_has_added_pages(Content $content, Displayables $displayables, Page $page)
 {
     $content->getDisplayables()->willReturn($displayables);
     $displayables->add($page)->shouldBeCalled()->willReturn(true);
     $this->addDisplayable($page);
 }
Esempio n. 3
0
 /**
  * @param DisplayableInterface $displayable
  *
  * @return bool
  */
 public function addDisplayable(DisplayableInterface $displayable)
 {
     $this->verifyDisplayable($displayable);
     return $this->content->getDisplayables()->add($displayable);
 }