ソースを参照

Update tests to match new output and fix phpcs

Mark Story 5 年 前
コミット
5d722e51f1

+ 1 - 1
src/Command/PluginLoadCommand.php

@@ -19,8 +19,8 @@ namespace Cake\Command;
 use Cake\Console\Arguments;
 use Cake\Console\ConsoleIo;
 use Cake\Console\ConsoleOptionParser;
-use Cake\Core\Plugin;
 use Cake\Core\Exception\MissingPluginException;
+use Cake\Core\Plugin;
 
 /**
  * Command for loading plugins.

+ 1 - 1
tests/TestCase/Command/PluginLoadCommandTest.php

@@ -99,7 +99,7 @@ class PluginLoadCommandTest extends TestCase
     {
         $this->exec('plugin load NopeNotThere');
         $this->assertExitCode(Command::CODE_ERROR);
-        $this->assertErrorContains('Could not find plugin <info>NopeNotThere</info>');
+        $this->assertErrorContains('Plugin NopeNotThere could not be found');
 
         $contents = file_get_contents($this->app);
         $this->assertStringNotContainsString("\$this->addPlugin('NopeNotThere');", $contents);