From fd9ef492faefff96deab5285e30bc1b675211bcb Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 26 Oct 2018 13:34:45 -0500 Subject: [PATCH] formatting --- src/Illuminate/Cache/CacheManager.php | 6 +++--- tests/Cache/CacheManagerTest.php | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Illuminate/Cache/CacheManager.php b/src/Illuminate/Cache/CacheManager.php index a3307b20fe1c..becd389dc063 100755 --- a/src/Illuminate/Cache/CacheManager.php +++ b/src/Illuminate/Cache/CacheManager.php @@ -279,12 +279,12 @@ public function setDefaultDriver($name) } /** - * Unset the given disk instances. + * Unset the given driver instances. * - * @param array|string|null $disk + * @param array|string|null $driver * @return $this */ - public function forgetCache($name = null) + public function forgetDriver($name = null) { $name = $name ?? $this->getDefaultDriver(); diff --git a/tests/Cache/CacheManagerTest.php b/tests/Cache/CacheManagerTest.php index d4ec89cca8d5..0cb25f6f34a9 100644 --- a/tests/Cache/CacheManagerTest.php +++ b/tests/Cache/CacheManagerTest.php @@ -30,7 +30,7 @@ public function testCustomDriverClosureBoundObjectIsCacheManager() $this->assertEquals($cacheManager, $cacheManager->store(__CLASS__)); } - public function testForgetCache() + public function testForgetDriver() { $cacheManager = m::mock(CacheManager::class) ->shouldAllowMockingProtectedMethods() @@ -48,13 +48,13 @@ public function testForgetCache() foreach (['array', ['array'], null] as $option) { $cacheManager->store('array'); $cacheManager->store('array'); - $cacheManager->forgetCache($option); + $cacheManager->forgetDriver($option); $cacheManager->store('array'); $cacheManager->store('array'); } } - public function testForgetCacheForgets() + public function testForgetDriverForgets() { $cacheManager = new CacheManager([ 'config' => [ @@ -69,7 +69,7 @@ public function testForgetCacheForgets() $cacheManager->store('forget')->forever('foo', 'bar'); $this->assertSame('bar', $cacheManager->store('forget')->get('foo')); - $cacheManager->forgetCache('forget'); + $cacheManager->forgetDriver('forget'); $this->assertNull($cacheManager->store('forget')->get('foo')); } }