/** * @dataProvider successFailureDataProvider * @param bool $result */ public function testRemove($result) { $this->_cacheFrontendMock->expects($this->once())->method('remove')->with('test_id')->will($this->returnValue($result)); $this->assertEquals($result, $this->_model->remove('test_id')); }
public function removeValue($key) { $cacheKey = \Ess\M2ePro\Helper\Data::CUSTOM_IDENTIFIER . '_' . $key; $this->cache->remove($cacheKey); }