Skip to content

Commit

Permalink
API Update API to reflect changes to CLI interaction (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Sep 26, 2024
1 parent e729f07 commit d70362a
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\PolyExecution\PolyOutput;
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 = PolyOutput::create(PolyOutput::FORMAT_ANSI);
$input = new ArrayInput([]);
$input->setInteractive(false);
$this->task->run($input, $output);
return ob_get_clean();
}
}

0 comments on commit d70362a

Please sign in to comment.