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