Skip to content

Commit

Permalink
Removes the version number in the welcome message in the custom testi…
Browse files Browse the repository at this point in the history
…ng shell
  • Loading branch information
HavokInspiration committed Apr 14, 2015
1 parent 5f86f59 commit a13458e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/TestCase/Console/ShellTest.php
Expand Up @@ -837,9 +837,9 @@ public function testDispatchShell()
$result = ob_get_clean();

$expected = <<<TEXT
<info>Welcome to CakePHP v3.0.1 Console</info>
<info>Welcome to CakePHP Console</info>
I am a test task, I dispatch another Shell
<info>Welcome to CakePHP v3.0.1 Console</info>
<info>Welcome to CakePHP Console</info>
I am a dispatched Shell
TEXT;
Expand Down
2 changes: 1 addition & 1 deletion tests/test_app/TestApp/Shell/TestingDispatchShell.php
Expand Up @@ -27,7 +27,7 @@ class TestingDispatchShell extends Shell

protected function _welcome()
{
$this->out(sprintf('<info>Welcome to CakePHP %s Console</info>', 'v' . Configure::version()));
$this->out('<info>Welcome to CakePHP Console</info>');
}

public function out($message = null, $newlines = 1, $level = Shell::NORMAL)
Expand Down

0 comments on commit a13458e

Please sign in to comment.