Exemplo n.º 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'));
 }