public function testGenerateVariationsTriggersWarningOnStorageException()
{
$this->imageModel->method('getWidth')->willReturn(1024);
$this->storage->expects($this->once())->method('storeImageVariation')->will($this->throwException(new StorageException()));
$this->listener->generateVariations($this->event);
}