Fixed: Get file in resizerTest
This commit is contained in:
parent
74d2dccadc
commit
72ef92b78c
|
@ -27,7 +27,7 @@ class ResizerTest extends TestCase
|
||||||
Setting::set('sizes', []);
|
Setting::set('sizes', []);
|
||||||
Setting::set('breakpoints', []);
|
Setting::set('breakpoints', []);
|
||||||
$file = UploadedFile::fake()->image('test.jpg', 500, 600);
|
$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]);
|
Event::fire('media.file.upload', [null, '/pages/test.jpg', null]);
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ class ResizerTest extends TestCase
|
||||||
Setting::set('sizes', []);
|
Setting::set('sizes', []);
|
||||||
Setting::set('breakpoints', []);
|
Setting::set('breakpoints', []);
|
||||||
$file = UploadedFile::fake()->image('test.jpg', 500, 600);
|
$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');
|
Cache::tags(['resizer', 'resizer.pages/test.jpg'])->put('resizer.original.pages/test.jpg', 'AAA');
|
||||||
|
|
||||||
Event::fire('media.file.upload', [null, '/pages/test.jpg', null]);
|
Event::fire('media.file.upload', [null, '/pages/test.jpg', null]);
|
||||||
|
|
Loading…
Reference in New Issue