|
|
@@ -70,7 +70,7 @@ class CommandRunnerTest extends TestCase
|
|
|
* Test that running with empty argv fails
|
|
|
*
|
|
|
* @expectedException \RuntimeException
|
|
|
- * @expectedExceptionMessage Unknown root command. Was expecting `cake`
|
|
|
+ * @expectedExceptionMessage Cannot run any commands. No arguments received.
|
|
|
* @return void
|
|
|
*/
|
|
|
public function testRunMissingRootCommand()
|
|
|
@@ -88,24 +88,6 @@ class CommandRunnerTest extends TestCase
|
|
|
* Test that running an unknown command raises an error.
|
|
|
*
|
|
|
* @expectedException \RuntimeException
|
|
|
- * @expectedExceptionMessage Unknown root command `bad`. Was expecting `cake`
|
|
|
- * @return void
|
|
|
- */
|
|
|
- public function testRunInvalidRootCommand()
|
|
|
- {
|
|
|
- $app = $this->getMockBuilder(BaseApplication::class)
|
|
|
- ->setMethods(['middleware', 'bootstrap'])
|
|
|
- ->setConstructorArgs([$this->config])
|
|
|
- ->getMock();
|
|
|
-
|
|
|
- $runner = new CommandRunner($app);
|
|
|
- $runner->run(['bad', 'i18n']);
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * Test that running an unknown command raises an error.
|
|
|
- *
|
|
|
- * @expectedException \RuntimeException
|
|
|
* @expectedExceptionMessage Unknown command `cake nope`. Run `cake --help` to get the list of valid commands.
|
|
|
* @return void
|
|
|
*/
|