21 $this->_mockBackend = $this->createMock(\Zend_Cache_Backend_File::class);
26 unset($this->_mockBackend);
33 $decorator = $this->getMockForAbstractClass(
34 \
Magento\Framework\Cache\Backend\Decorator\AbstractDecorator::class,
38 $backendProperty = new \ReflectionProperty(
39 \
Magento\Framework\Cache\Backend\Decorator\AbstractDecorator::class,
42 $backendProperty->setAccessible(
true);
44 $optionsProperty = new \ReflectionProperty(
45 \
Magento\Framework\Cache\Backend\Decorator\AbstractDecorator::class,
48 $optionsProperty->setAccessible(
true);
52 $this->assertArrayNotHasKey(
'concrete_backend', $optionsProperty->getValue($decorator));
53 $this->assertArrayNotHasKey(
'testOption', $optionsProperty->getValue($decorator));
63 $this->getMockForAbstractClass(\
Magento\Framework\Cache\Backend\Decorator\AbstractDecorator::class, [
$options]);
73 'wrong_class' => [[
'concrete_backend' => $this->getMockBuilder(
'Test_Class')->getMock()]]
82 $this->_mockBackend->expects($this->once())->method($methodName);
84 $decorator = $this->getMockForAbstractClass(
85 \
Magento\Framework\Cache\Backend\Decorator\AbstractDecorator::class,
86 [[
'concrete_backend' => $this->_mockBackend]]
107 'getIdsMatchingTags',
108 'getIdsNotMatchingTags',
109 'getIdsMatchingAnyTags',
110 'getFillingPercentage',
118 foreach ($allMethods as
$method) {
testAllMethods($methodName)
call_user_func($callable, $param)
testConstructorException($options)
constructorExceptionDataProvider()