public function testTriggersImageTransformationEvents()
{
$this->event->expects($this->once())->method('getConfig')->will($this->returnValue(['transformationPresets' => []]));
$this->request->expects($this->once())->method('getTransformations')->will($this->returnValue([['name' => 'resize', 'params' => ['width' => 100]], ['name' => 'thumbnail', 'params' => ['some' => 'value']]]));
$this->eventManager->expects($this->at(0))->method('trigger')->with('image.transformation.resize', ['image' => $this->image, 'params' => ['width' => 100]]);
$this->eventManager->expects($this->at(1))->method('trigger')->with('image.transformation.thumbnail', ['image' => $this->image, 'params' => ['some' => 'value']]);
$this->listener->transform($this->event);
}