Browse Source

Fix up tests.

mscherer 10 years ago
parent
commit
44916224e3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/TestCase/Console/ShellTest.php

+ 2 - 2
tests/TestCase/Console/ShellTest.php

@@ -307,7 +307,7 @@ class ShellTest extends TestCase
     {
         $this->io->expects($this->once())
             ->method('err')
-            ->with('Just a test', 1);
+            ->with('<error>Just a test</error>', 1);
 
         $this->Shell->err('Just a test');
     }
@@ -334,7 +334,7 @@ class ShellTest extends TestCase
     public function testWarn()
     {
         $this->io->expects($this->once())
-            ->method('err')
+            ->method('warn')
             ->with('<warning>Just a test</warning>', 1);
 
         $this->Shell->warn('Just a test');