put( 'posters/example-poster.png', file_get_contents(base_path('tests/__fixtures__/full-size-poster.png')) ); $concert = \ConcertFactory::createUnpublished([ 'poster_image_path' => 'posters/example-poster.png', ]); ProcessPosterImage::dispatch($concert); $resizedImage = Storage::disk('public')->get('posters/example-poster.png'); list($width) = getimagesizefromstring($resizedImage); $this->assertEquals(600, $width); } }