Skip to content

Commit

Permalink
Fix more deprecated method usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 11, 2017
1 parent b049f90 commit 2e4d314
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions tests/TestCase/Cache/Engine/ApcuEngineTest.php
Expand Up @@ -69,7 +69,7 @@ protected function _configCache($config = [])
'warnOnWriteFailures' => true,
];
Cache::drop('apcu');
Cache::config('apcu', array_merge($defaults, $config));
Cache::setConfig('apcu', array_merge($defaults, $config));
}

/**
Expand Down Expand Up @@ -104,7 +104,7 @@ public function testReadAndWriteCache()
public function testReadWriteDurationZero()
{
Cache::drop('apcu');
Cache::config('apcu', ['engine' => 'Apcu', 'duration' => 0, 'prefix' => 'cake_']);
Cache::setConfig('apcu', ['engine' => 'Apcu', 'duration' => 0, 'prefix' => 'cake_']);
Cache::write('zero', 'Should save', 'apcu');
sleep(1);

Expand Down Expand Up @@ -220,7 +220,7 @@ public function testClear()
*/
public function testGroupsReadWrite()
{
Cache::config('apcu_groups', [
Cache::setConfig('apcu_groups', [
'engine' => 'Apcu',
'duration' => 0,
'groups' => ['group_a', 'group_b'],
Expand Down Expand Up @@ -248,7 +248,7 @@ public function testGroupsReadWrite()
*/
public function testGroupDelete()
{
Cache::config('apcu_groups', [
Cache::setConfig('apcu_groups', [
'engine' => 'Apcu',
'duration' => 0,
'groups' => ['group_a', 'group_b'],
Expand All @@ -269,7 +269,7 @@ public function testGroupDelete()
*/
public function testGroupClear()
{
Cache::config('apcu_groups', [
Cache::setConfig('apcu_groups', [
'engine' => 'Apcu',
'duration' => 0,
'groups' => ['group_a', 'group_b'],
Expand Down
8 changes: 4 additions & 4 deletions tests/TestCase/Cache/Engine/WincacheEngineTest.php
Expand Up @@ -62,7 +62,7 @@ protected function _configCache($config = [])
'prefix' => 'cake_'
];
Cache::drop('wincache');
Cache::config('wincache', array_merge($defaults, $config));
Cache::setConfig('wincache', array_merge($defaults, $config));
}

/**
Expand Down Expand Up @@ -214,7 +214,7 @@ public function testClear()
*/
public function testGroupsReadWrite()
{
Cache::config('wincache_groups', [
Cache::setConfig('wincache_groups', [
'engine' => 'Wincache',
'duration' => 0,
'groups' => ['group_a', 'group_b'],
Expand All @@ -241,7 +241,7 @@ public function testGroupsReadWrite()
*/
public function testGroupDelete()
{
Cache::config('wincache_groups', [
Cache::setConfig('wincache_groups', [
'engine' => 'Wincache',
'duration' => 0,
'groups' => ['group_a', 'group_b'],
Expand All @@ -261,7 +261,7 @@ public function testGroupDelete()
*/
public function testGroupClear()
{
Cache::config('wincache_groups', [
Cache::setConfig('wincache_groups', [
'engine' => 'Wincache',
'duration' => 0,
'groups' => ['group_a', 'group_b'],
Expand Down

0 comments on commit 2e4d314

Please sign in to comment.