Example #1
0
 public function it_can_add_next_link()
 {
     $this->addNext('http://yolo');
     $this->getLinks()->shouldBeArray();
     $this->getLinks()->shouldHaveCount(1);
     $this->hasLink(Link::createNext('http://yolo'));
 }
Example #2
0
 public function addNext($href)
 {
     $this->addLink(Link::createNext($href));
 }
Example #3
0
 public function it_cannot_add_other_links()
 {
     $link = Link::createNext('http://yolo.com');
     $this->shouldThrow(\Exception::class)->duringAddAboutLink($link);
 }