Gush\Tests\Subscriber\GitRepoSubscriberTest::runCommandTest PHP Method

runCommandTest() private method

private runCommandTest ( Gush\Command\BaseCommand $command, array $input = [], array $localConfig = [], Closure | null $helperSetManipulator = null ) : Symfony\Component\Console\Tester\CommandTester
$command Gush\Command\BaseCommand
$input array
$localConfig array
$helperSetManipulator Closure | null
return Symfony\Component\Console\Tester\CommandTester
    private function runCommandTest(BaseCommand $command, array $input = [], array $localConfig = [], $helperSetManipulator = null)
    {
        $config = new Config('/home/user', ['adapters' => ['github' => ['authentication' => ['username' => 'cordoval', 'password' => 'very-un-secret']], 'github_enterprise' => ['authentication' => ['username' => 'admins', 'password' => 'very-un-secretly']]]], '/data/repo-dir', $localConfig);
        $application = $this->getApplication($config, $helperSetManipulator);
        $command->setApplication($application);
        $commandTest = new CommandTester($command);
        $commandTest->execute(array_merge($input, ['command' => $command->getName()]), ['decorated' => false]);
        return $commandTest;
    }