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

getPullRequest() public method

public getPullRequest ( $id )
    public function getPullRequest($id)
    {
        if (self::PULL_REQUEST_NUMBER === $id) {
            if (!$this->pullRequest) {
                throw new \RuntimeException(sprintf('ID #%d is reserved for testing, call openPullRequest() first before using this id', self::PULL_REQUEST_NUMBER));
            }
            return $this->pullRequest;
        }
        return ['url' => 'https://github.com/gushphp/gush/pull/' . $id, 'number' => $id, 'state' => 'open', 'title' => 'Write a behat test to launch strategy', 'body' => 'Help me conquer the world. Teach them to use Gush.', 'labels' => ['actionable', 'easy pick'], 'milestone' => 'some_good_stuff', 'created_at' => new \DateTime('1969-12-31T10:00:00+0100'), 'updated_at' => new \DateTime('1969-12-31T10:00:00+0100'), 'user' => 'weaverryan', 'assignee' => 'cordoval', 'merged' => false, 'merged_by' => null, 'head' => ['ref' => 'head_ref', 'sha' => '6dcb09b5b57875f334f61aebed695e2e4193db5e', 'user' => 'cordoval', 'repo' => 'gush'], 'base' => ['ref' => 'base_ref', 'label' => 'base_ref', 'sha' => '6dcb09b5b57875f334f61acmes695e2e4193db5e', 'user' => 'gushphp', 'repo' => 'gush']];
    }