public function testWillNotAddAModelIfTheEventIsNotAShortUrlsEvent()
{
$this->request->expects($this->once())->method('getUser')->will($this->returnValue('user'));
$this->request->expects($this->once())->method('getImageIdentifier')->will($this->returnValue('id'));
$this->database->expects($this->once())->method('deleteShortUrls')->with('user', 'id');
$this->event->expects($this->once())->method('getName')->will($this->returnValue('image.delete'));
$this->response->expects($this->never())->method('setModel');
$this->getNewResource()->deleteImageShortUrls($this->event);
}