public function testGenerateVariationsCallsStoreImageVariationForEveryWidth()
{
$listener = new ImageVariations(['database' => ['adapter' => $this->db], 'storage' => ['adapter' => $this->storage], 'widths' => [25, 100, 400, 800, 1024, 1700, 3000], 'autoScale' => false]);
$this->imageModel->method('getWidth')->willReturn(2048);
$this->storage->expects($this->exactly(6))->method('storeImageVariation')->with($this->user, $this->imageIdentifier, $this->anything(), $this->greaterThan(0));
$listener->generateVariations($this->event);
}