Skip to content
Permalink
Browse files

rename CachesShell to CacheShell

  • Loading branch information...
chris48s committed May 27, 2016
1 parent 4ce2da2 commit 6d8d7a7f8708dc6c63eaab6abd172ed3aeed9df2
@@ -19,13 +19,13 @@
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
{
/**
@@ -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 @@ public function setUp()
{
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]);
}
@@ -81,7 +81,7 @@ public function testMain()
$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 @@ public function testMainAppPriority()
$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/";
@@ -120,7 +120,7 @@ public function testCommands()
$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);
}

0 comments on commit 6d8d7a7

Please sign in to comment.
You can’t perform that action at this time.