Gush\Tests\Fixtures\Adapter\TestAdapter::getIssue PHP Method

getIssue() public method

public getIssue ( $id )
    public function getIssue($id)
    {
        if (self::ISSUE_NUMBER_CREATED === $id) {
            if (!$this->issue) {
                throw new \RuntimeException(sprintf('ID #%d is reserved for testing, call openIssue() first before using this id', self::ISSUE_NUMBER_CREATED));
            }
            return $this->issue;
        }
        return ['url' => $this->getIssueUrl($id), 'number' => $id, 'state' => 'open', 'title' => 'Write a behat test to launch strategy', 'body' => 'Help me conquer the world. Teach them to use Gush.', 'user' => 'weaverryan', 'labels' => ['actionable', 'easy pick'], 'assignee' => 'cordoval', 'milestone' => 'v1.0', 'created_at' => new \DateTime('2014-05-14T15:30:00+0100'), 'updated_at' => new \DateTime('2014-05-14T15:30:00+0100'), 'closed_by' => null, 'pull_request' => true, 'org' => $this->username, 'repo' => $this->repository];
    }