public function getValue($key) { $cacheKey = \Ess\M2ePro\Helper\Data::CUSTOM_IDENTIFIER . '_' . $key; $value = $this->cache->load($cacheKey); $value !== false && ($value = @unserialize($value)); return $value; }
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')); }