public function testCanFormatAnErrorModelWhenNoImageIdentifierExists()
{
$date = new DateTime();
$model = $this->getMock('Imbo\\Model\\Error');
$model->expects($this->once())->method('getDate')->will($this->returnValue($date));
$model->expects($this->once())->method('getImageIdentifier')->will($this->returnValue(null));
$json = $this->formatter->format($model);
$data = json_decode($json, true);
$this->assertArrayNotHasKey('imageIdentifier', $data);
}