Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

Commit

Permalink
Upgrade Robo to 1.0.0-RC1
Browse files Browse the repository at this point in the history
  • Loading branch information
Andor Dávid committed Aug 20, 2016
1 parent af28c56 commit 40a7255
Show file tree
Hide file tree
Showing 3 changed files with 191 additions and 42 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"prefer-stable": true,
"require": {
"cheppers/asset-jar": "^0.0",
"consolidation/robo": "dev-master#628f807dc6e321ba858cadc00eecc6a40a99efa9"
"consolidation/robo": "1.0.0-RC1"
},
"require-dev": {
"cheppers/git-hooks": "^0.0.8",
Expand Down
226 changes: 186 additions & 40 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion tests/unit/TaskTsLintRunTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

use Cheppers\Robo\Task\TsLint\TaskTsLintRun;
use Codeception\Util\Stub;
use Robo\Robo;

/**
* Class TaskTsLintRunTest.
Expand All @@ -24,7 +25,7 @@ protected function _before()
{
// @codingStandardsIgnoreEnd
$this->container = new \League\Container\Container();
\Robo\Robo::setContainer($this->container);
Robo::setContainer($this->container);
\Robo\Runner::configureContainer($this->container, null, new \Helper\Dummy\Output());
$this->container->addServiceProvider(Cheppers\Robo\Task\TsLint\LoadTasks::getTsLintServiceProvider());
}
Expand Down Expand Up @@ -352,6 +353,7 @@ public function testRun($exit_code, $std_output, $with_jar)
\Helper\Dummy\Process::$exitCode = $exit_code;
\Helper\Dummy\Process::$stdOutput = $with_jar ? json_encode($std_output) : $std_output;

$task->setConfig(Robo::config());
$task->setLogger($this->container->get('logger'));
$asset_jar = null;
if ($with_jar) {
Expand Down Expand Up @@ -399,6 +401,7 @@ public function testRunFailed()
\Helper\Dummy\Process::$exitCode = $exit_code;
\Helper\Dummy\Process::$stdOutput = $std_output;

$task->setConfig(Robo::config());
$task->setLogger($this->container->get('logger'));
$asset_jar = new \Cheppers\AssetJar\AssetJar();
$task->setAssetJar($asset_jar);
Expand Down

0 comments on commit 40a7255

Please sign in to comment.