public function testGenerateVariationsIncludesSpecifiedWidths()
{
$listener = new ImageVariations(['database' => ['adapter' => $this->db], 'storage' => ['adapter' => $this->storage], 'widths' => [1337], 'scaleFactor' => 0.2]);
$this->imageModel->method('getWidth')->willReturn(2048);
$this->storage->expects($this->exactly(2))->method('storeImageVariation')->withConsecutive([$this->user, $this->imageIdentifier, $this->anything(), 1337], [$this->user, $this->imageIdentifier, $this->anything(), 410]);
$listener->generateVariations($this->event);
}