Exemple #1
0
 /**
  * @covers \Magento\Framework\Interception\PluginList\PluginList::getNext
  * @covers \Magento\Framework\Interception\PluginList\PluginList::_loadScopedData
  */
 public function testLoadScopedDataCached()
 {
     $this->_configScopeMock->expects($this->once())->method('getCurrentScope')->will($this->returnValue('scope'));
     $data = array(array('key'), array('key'), array('key'));
     $this->_cacheMock->expects($this->once())->method('load')->with('global|scope|interception')->will($this->returnValue(serialize($data)));
     $this->assertEquals(null, $this->_model->getNext('Type', 'method'));
 }
 /**
  * @param \Magento\Framework\Config\ReaderInterface $reader
  * @param \Magento\Framework\Config\ScopeInterface $configScope
  * @param \Magento\Framework\Config\CacheInterface $cache
  * @param \Magento\Framework\ObjectManager\RelationsInterface $relations
  * @param \Magento\Framework\ObjectManager\ConfigInterface $omConfig
  * @param \Magento\Framework\Interception\DefinitionInterface $definitions
  * @param \Magento\Framework\ObjectManagerInterface $objectManager
  * @param \Magento\Framework\ObjectManager\DefinitionInterface $classDefinitions
  * @param array $scopePriorityScheme
  * @param string $cacheId
  *
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Framework\Config\ReaderInterface $reader, \Magento\Framework\Config\ScopeInterface $configScope, \Magento\Framework\Config\CacheInterface $cache, \Magento\Framework\ObjectManager\RelationsInterface $relations, \Magento\Framework\ObjectManager\ConfigInterface $omConfig, \Magento\Framework\Interception\DefinitionInterface $definitions, \Magento\Framework\ObjectManagerInterface $objectManager, \Magento\Framework\ObjectManager\DefinitionInterface $classDefinitions, array $scopePriorityScheme, $cacheId = 'plugins')
 {
     parent::__construct($reader, $configScope, $cache, $relations, $omConfig, $definitions, $objectManager, $classDefinitions, $scopePriorityScheme, $cacheId);
     $this->_originScopeScheme = $this->_scopePriorityScheme;
 }