示例#1
0
 public function getValue($key)
 {
     $cacheKey = \Ess\M2ePro\Helper\Data::CUSTOM_IDENTIFIER . '_' . $key;
     $value = $this->cache->load($cacheKey);
     $value !== false && ($value = @unserialize($value));
     return $value;
 }
示例#2
0
 public function testLoad()
 {
     $this->_cacheFrontendMock->expects($this->once())->method('load')->with('test_id')->will($this->returnValue('test_data'));
     $this->assertEquals('test_data', $this->_model->load('test_id'));
 }