/** * {@inheritdoc} */ public function getAuthor() { return \igorw\get_in($this->raw->getReporter(), ['displayName']); }
public function it_returns_the_author_url(Issue $issue) { $issue->getReporter()->shouldBeCalled()->willReturn(['displayName' => 'foo']); $issue->getSelf()->shouldBeCalled()->willReturn('http://jira.com'); $this->getAuthorUrl()->shouldReturn('http://jira.com/ViewProfile.jspa?name=foo'); }