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