Gush\Tests\Command\Issue\IssueTakeCommandTest::testTakeIssueWithSpecificBaseFromConfig PHP Метод

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

    public function testTakeIssueWithSpecificBaseFromConfig()
    {
        $command = new IssueTakeCommand();
        $tester = $this->getCommandTester($command, null, array_merge(self::$localConfig, ['base' => 'development']), function (HelperSet $helperSet) {
            $helperSet->set($this->expectTextHelper()->reveal());
            $helperSet->set($this->getGitConfigHelper()->reveal());
            $helperSet->set($this->getLocalGitHelper('gushphp', 'gushphp/development')->reveal());
        });
        $tester->execute(['issue_number' => TestAdapter::ISSUE_NUMBER]);
        $display = $tester->getDisplay();
        $this->assertCommandOutputMatches(sprintf('Issue https://github.com/gushphp/gush/issues/%s taken', TestAdapter::ISSUE_NUMBER), $display);
    }