Gush\Tests\Command\PullRequest\PullRequestPatOnTheBackCommandTest::testChoosePatOnTheBack PHP Метод

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

    public function testChoosePatOnTheBack()
    {
        $command = new PullRequestPatOnTheBackCommand();
        $tester = $this->getCommandTester($command, null, null, function (HelperSet $helperSet) {
            $helperSet->set($this->getTemplateHelper('beers'));
        });
        $this->setExpectedCommandInput($command, ['beers']);
        $tester->execute(['pr_number' => 10]);
        $this->assertCommandOutputMatches('Pat on the back pushed to https://github.com/gushphp/gush/pull/10', $tester->getDisplay());
    }