Gush\Tests\Command\Branch\BranchMergeCommandTest::testMergePullRequestWithFastForward PHP Method

testMergePullRequestWithFastForward() public method

    public function testMergePullRequestWithFastForward()
    {
        $command = new BranchMergeCommand();
        $tester = $this->getCommandTester($command, null, null, function (HelperSet $helperSet) {
            $helperSet->set($this->getLocalGitHelper(sprintf($this->mergeMessage, 'develop', 'master'), false, false, true)->reveal());
        });
        $tester->execute(['target_branch' => 'master', 'source_branch' => 'develop', '--fast-forward' => true], ['interactive' => false]);
        $display = $tester->getDisplay();
        $this->assertCommandOutputMatches(sprintf(self::COMMAND_DISPLAY, 'gushphp/develop', 'gushphp/master'), $display);
    }