Fixed: Get file in resizerTest

This commit is contained in:
philipp lang 2022-02-16 01:48:07 +01:00
parent 74d2dccadc
commit 72ef92b78c
1 changed files with 2 additions and 2 deletions

View File

@ -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]);