/** * {@inheritdoc} */ public function getAssignee() { if ($assignee = $this->raw->getAssignee()) { return \igorw\get_in($assignee, ['displayName']); } }
public function it_doenst_returns_the_assignee_url_if_no_assignee(Issue $issue) { $issue->getAssignee()->shouldBeCalled()->willReturn(); $issue->getSelf()->shouldNotBeCalled(); $this->getAssigneeUrl()->shouldReturn(null); }