/** * {@inheritdoc} */ public function getState() { return \igorw\get_in($this->raw->getStatus(), ['name']); }
public function it_returns_the_state(Issue $issue) { $issue->getStatus()->shouldBeCalled()->willReturn(['name' => 'open']); $this->getState()->shouldReturn('open'); }