Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Oct 26, 2018
1 parent 7c3e452 commit fd9ef49
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/Illuminate/Cache/CacheManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
8 changes: 4 additions & 4 deletions tests/Cache/CacheManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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' => [
Expand All @@ -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'));
}
}

0 comments on commit fd9ef49

Please sign in to comment.