浏览代码

Adjust test since we do not spam our users anymore

Rachman Chavik 8 年之前
父节点
当前提交
c500f07b26

+ 0 - 1
tests/TestCase/Console/CommandRunnerTest.php

@@ -201,7 +201,6 @@ class CommandRunnerTest extends TestCase
 
         $contents = implode("\n", $output->messages());
         $this->assertContains('URI template', $contents);
-        $this->assertContains('Welcome to CakePHP', $contents);
     }
 
     /**

+ 0 - 5
tests/TestCase/Console/ShellTest.php

@@ -1162,11 +1162,6 @@ TEXT;
         $task->expects($this->never())
             ->method('_welcome');
 
-        // One welcome message output.
-        $io->expects($this->at(2))
-            ->method('out')
-            ->with($this->stringContains('Welcome to CakePHP'));
-
         $shell->Slice = $task;
         $shell->runCommand(['slice', 'one']);
         $this->assertTrue($task->params['requested'], 'Task is requested, no welcome.');

+ 0 - 2
tests/TestCase/TestSuite/ConsoleIntegrationTestCaseTest.php

@@ -43,7 +43,6 @@ class ConsoleIntegrationTestCaseTest extends ConsoleIntegrationTestCase
 
         $this->exec('routes');
 
-        $this->assertOutputContains('Welcome to CakePHP');
         $this->assertExitCode(Shell::CODE_SUCCESS);
     }
 
@@ -69,7 +68,6 @@ class ConsoleIntegrationTestCaseTest extends ConsoleIntegrationTestCase
     {
         $this->exec('routes');
 
-        $this->assertOutputContains('Welcome to CakePHP');
         $this->assertExitCode(Shell::CODE_SUCCESS);
     }