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

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

    public function testTakeIssueFromSpecificOrgAndRepo()
    {
        $command = new IssueTakeCommand();
        $tester = $this->getCommandTester($command, null, null, function (HelperSet $helperSet) {
            $helperSet->set($this->expectTextHelper()->reveal());
            $helperSet->set($this->getGitConfigHelper('gushphp-fork', 'gush-source')->reveal());
            $helperSet->set($this->getLocalGitHelper('gushphp-fork', 'gushphp-fork/master')->reveal());
        });
        $tester->execute(['--org' => 'gushphp-fork', '--repo' => 'gush-source', '--issue-org' => 'gushphp', '--issue-project' => 'gush', 'issue_number' => TestAdapter::ISSUE_NUMBER]);
        $display = $tester->getDisplay();
        $this->assertCommandOutputMatches(sprintf('Issue https://github.com/gushphp/gush/issues/%s taken', TestAdapter::ISSUE_NUMBER), $display);
    }