Gush\Tests\Fixtures\Adapter\TestAdapter::openPullRequest PHP Метод

openPullRequest() публичный Метод

public openPullRequest ( $base, $head, $subject, $body, array $parameters = [] )
$parameters array
    public function openPullRequest($base, $head, $subject, $body, array $parameters = [])
    {
        list($sourceOrg, $sourceBranch) = explode(':', $head);
        $this->pullRequest = ['url' => 'https://github.com/gushphp/gush/pull/' . self::PULL_REQUEST_NUMBER, 'number' => self::PULL_REQUEST_NUMBER, 'state' => 'open', 'title' => $subject, 'body' => $body, 'labels' => [], 'milestone' => 'some_good_stuff', 'created_at' => new \DateTime(), 'updated_at' => new \DateTime(), 'user' => 'cordoval', 'assignee' => null, 'merged' => false, 'merged_by' => null, 'head' => ['ref' => $sourceBranch, 'sha' => '6dcb09b5b57875f334f61aebed695e2e4193db5e', 'user' => $sourceOrg, 'repo' => 'gush'], 'base' => ['ref' => $base, 'label' => 'base_ref', 'sha' => '6dcb09b5b57875f334f61acmes695e2e4193db5e', 'user' => 'gushphp', 'repo' => 'gush']];
        return ['html_url' => 'https://github.com/gushphp/gush/pull/' . self::PULL_REQUEST_NUMBER, 'number' => self::PULL_REQUEST_NUMBER];
    }