Gush\Tests\Command\PullRequest\PullRequestMergeCommandTest::testMergePullRequestTypeIsAsked PHP Метод

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

    public function testMergePullRequestTypeIsAsked()
    {
        $command = new PullRequestMergeCommand();
        $tester = $this->getCommandTester($command, null, null, function (HelperSet $helperSet) {
            $helperSet->set($this->getLocalGitHelper(sprintf($this->mergeMessage, 'feature', 10))->reveal());
        });
        $this->setExpectedCommandInput($command, "feature\n");
        $tester->execute(['pr_number' => 10, '--pat' => 'none'], ['interactive' => true]);
        $display = $tester->getDisplay();
        $this->assertCommandOutputMatches(self::COMMAND_DISPLAY, $display);
    }