/**
* @covers Imbo\Resource\Stats::get
*/
public function testTriggersTheCorrectEvent()
{
$responseHeaders = $this->getMock('Symfony\\Component\\HttpFoundation\\HeaderBag');
$responseHeaders->expects($this->once())->method('addCacheControlDirective')->with('no-store');
$this->response->headers = $responseHeaders;
$this->response->expects($this->once())->method('setMaxAge')->with(0)->will($this->returnSelf());
$this->response->expects($this->once())->method('setPrivate')->will($this->returnSelf());
$this->eventManager->expects($this->once())->method('trigger')->with('db.stats.load');
$this->resource->get($this->event);
}