Gush\Tests\Command\PullRequest\PullRequestCreateCommandTest::testCannotOpenPullRequestForNonExistentBranch PHP Method

testCannotOpenPullRequestForNonExistentBranch() public method

    public function testCannotOpenPullRequestForNonExistentBranch()
    {
        $command = new PullRequestCreateCommand();
        $tester = $this->getCommandTester($command, null, null, function (HelperSet $helperSet) {
            $helperSet->set($this->getLocalGitHelper('someone')->reveal());
            $helperSet->set($this->getGitConfigHelper('someone')->reveal());
        });
        $this->setExpectedException(UserException::class, 'Cannot open pull-request, remote branch "not-my-branch" does not exist in "someone/gush".');
        $tester->execute(['--template' => 'default', '--source-org' => 'someone', '--source-branch' => 'not-my-branch']);
    }