diff --git a/tests/ResizerTest.php b/tests/ResizerTest.php index 1a6b64c..72cf87a 100644 --- a/tests/ResizerTest.php +++ b/tests/ResizerTest.php @@ -27,7 +27,7 @@ class ResizerTest extends TestCase Setting::set('sizes', []); Setting::set('breakpoints', []); $file = UploadedFile::fake()->image('test.jpg', 500, 600); - $this->media->put('/pages/test.jpg', $file); + $this->media->put('/pages/test.jpg', $file->get()); Event::fire('media.file.upload', [null, '/pages/test.jpg', null]); @@ -40,7 +40,7 @@ class ResizerTest extends TestCase Setting::set('sizes', []); Setting::set('breakpoints', []); $file = UploadedFile::fake()->image('test.jpg', 500, 600); - $this->media->put('/pages/test.jpg', $file); + $this->media->put('/pages/test.jpg', $file->get()); Cache::tags(['resizer', 'resizer.pages/test.jpg'])->put('resizer.original.pages/test.jpg', 'AAA'); Event::fire('media.file.upload', [null, '/pages/test.jpg', null]);