By avpaderno on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
7.x-1.x
Introduced in version:
7.x-1.0-beta7
Issue links:
Description:
ApcCacheTestCase::getCacheBins() has been added for test classes implemented by contributed / third-party modules. It returns all the cache bins which have been set to be stored on APCu.
A class that uses another cache bin in its test methods needs to call ApcCacheTestCase::setCacheBins() in its setUp() method.
A test that just uses the default cache bin (which is now named cache_apc) can use the following code.
// The default cache bin is always the first item, even when another name is used.
$cache_bins = $this->getCacheBins();
$bin = $cache_bins[0];
Impacts:
Module developers