Skip to content

Commit

Permalink
API Update API to reflect changes to CLI interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Sep 6, 2024
1 parent 7ec468a commit a66f91a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/Extensions/CheckComposerUpdatesExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
use SilverStripe\Core\Config\Config;
use SilverStripe\Core\Injector\Injector;
use SilverStripe\Dev\SapphireTest;
use SilverStripe\HybridExecution\HybridOutput;
use Symfony\Component\Console\Input\ArrayInput;

/**
* @mixin PHPUnit_Framework_TestCase
Expand Down Expand Up @@ -80,7 +82,10 @@ public function testOnlyAllowedPackageTypesAreProcessed()
protected function runTask()
{
ob_start();
$this->task->run(null);
$output = HybridOutput::create(HybridOutput::FORMAT_ANSI);
$input = new ArrayInput([]);
$input->setInteractive(false);
$this->task->run($input, $output);
return ob_get_clean();
}
}

0 comments on commit a66f91a

Please sign in to comment.