Browse Source

rename CachesShell to CacheShell

chris48s 9 years ago
parent
commit
6d8d7a7f87

+ 2 - 2
src/Shell/CachesShell.php

@@ -19,13 +19,13 @@ use Cake\Console\Shell;
 use Cake\Core\Configure;
 
 /**
- * Caches Shell.
+ * Cache Shell.
  *
  * Provides a CLI interface to clear caches.
  * This tool can be used in development or by deployment scripts when changes
  * are made that require cached data to be removed.
  */
-class CachesShell extends Shell
+class CacheShell extends Shell
 {
 
     /**

+ 4 - 4
tests/TestCase/Shell/CachesShellTest.php

@@ -15,13 +15,13 @@
 namespace Cake\Test\TestCase\Shell;
 
 use Cake\Cache\Cache;
-use Cake\Shell\CachesShell;
+use Cake\Shell\CacheShell;
 use Cake\TestSuite\TestCase;
 
 /**
- * CachesShell tests.
+ * CacheShell tests.
  */
-class CachesShellTest extends TestCase
+class CacheShellTest extends TestCase
 {
 
     /**
@@ -33,7 +33,7 @@ class CachesShellTest extends TestCase
     {
         parent::setUp();
         $this->io = $this->getMock('Cake\Console\ConsoleIo');
-        $this->shell = new CachesShell($this->io);
+        $this->shell = new CacheShell($this->io);
         Cache::config('test', ['engine' => 'File', 'path' => TMP]);
     }
 

+ 2 - 2
tests/TestCase/Shell/CommandListShellTest.php

@@ -81,7 +81,7 @@ class CommandListShellTest extends TestCase
         $expected = "/\[.*TestPluginTwo.*\] example, unique, welcome/";
         $this->assertRegExp($expected, $output);
 
-        $expected = "/\[.*CORE.*\] caches, i18n, orm_cache, plugin, routes, server/";
+        $expected = "/\[.*CORE.*\] cache, i18n, orm_cache, plugin, routes, server/";
         $this->assertRegExp($expected, $output);
 
         $expected = "/\[.*app.*\] i18m, sample/";
@@ -102,7 +102,7 @@ class CommandListShellTest extends TestCase
         $output = implode("\n", $output);
         rename(APP . 'Shell' . DS . 'I18nShell.php', APP . 'Shell' . DS . 'I18mShell.php');
 
-        $expected = "/\[.*CORE.*\] caches, orm_cache, plugin, routes, server/";
+        $expected = "/\[.*CORE.*\] cache, orm_cache, plugin, routes, server/";
         $this->assertRegExp($expected, $output);
 
         $expected = "/\[.*app.*\] i18n, sample/";

+ 1 - 1
tests/TestCase/Shell/CompletionShellTest.php

@@ -120,7 +120,7 @@ class CompletionShellTest extends TestCase
         $output = $this->out->output;
 
         $expected = "TestPlugin.example TestPlugin.sample TestPluginTwo.example unique welcome " .
-            "caches i18n orm_cache plugin routes server i18m sample testing_dispatch\n";
+            "cache i18n orm_cache plugin routes server i18m sample testing_dispatch\n";
         $this->assertTextEquals($expected, $output);
     }