Skip to content

Commit

Permalink
Use class constants.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jun 20, 2017
1 parent a7f9372 commit 416a702
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/TestCase/Console/CommandRunnerTest.php
Expand Up @@ -22,6 +22,7 @@
use Cake\Http\BaseApplication;
use Cake\TestSuite\TestCase;
use Cake\TestSuite\Stub\ConsoleOutput;
use TestApp\Shell\SampleShell;

/**
* Test case for the CommandCollection
Expand Down Expand Up @@ -182,7 +183,7 @@ public function testRunValidCommandWithAbort()
->setConstructorArgs([$this->config])
->getMock();

$commands = new CommandCollection(['failure' => 'TestApp\Shell\SampleShell']);
$commands = new CommandCollection(['failure' => SampleShell::class]);
$app->method('console')->will($this->returnValue($commands));

$output = new ConsoleOutput();
Expand All @@ -204,7 +205,7 @@ public function testRunValidCommandReturnInteger()
->setConstructorArgs([$this->config])
->getMock();

$commands = new CommandCollection(['failure' => 'TestApp\Shell\SampleShell']);
$commands = new CommandCollection(['failure' => SampleShell::class]);
$app->method('console')->will($this->returnValue($commands));

$output = new ConsoleOutput();
Expand Down

0 comments on commit 416a702

Please sign in to comment.