storeInCache() public method

Store metadata in the cache
public storeInCache ( Imbo\EventManager\EventInterface $event )
$event Imbo\EventManager\EventInterface The event instance
Beispiel #1
0
 /**
  * @covers Imbo\EventListener\MetadataCache::storeInCache
  */
 public function testDoesNotStoreDataInCacheWhenResponseCodeIsNot200()
 {
     $this->cache->expects($this->never())->method('set');
     $this->response->expects($this->once())->method('getStatusCode')->will($this->returnValue(404));
     $this->listener->storeInCache($this->event);
 }