mirror of
https://github.com/flarum/core.git
synced 2025-08-06 00:17:31 +02:00
feat: upgrade intervention/image
to 3.2 (#3947)
* chore: create standalone imageprovider * chore: upgrade intervention to v3 * Apply fixes from StyleCI * use new static instatiation * Revert "Apply fixes from StyleCI" This reverts commit 096b4d9a79fa41c948a7572cf65316ebc6b07d36. * get avatar from remote * Apply fixes from StyleCI * fix: incorrect gid exception namespace * fix test * remove debug code --------- Co-authored-by: StyleCI Bot <bot@styleci.io>
This commit is contained in:
@@ -16,7 +16,7 @@ use Illuminate\Contracts\Events\Dispatcher;
|
||||
use Illuminate\Contracts\Filesystem\Factory;
|
||||
use Illuminate\Contracts\Filesystem\Filesystem;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Intervention\Image\ImageManagerStatic;
|
||||
use Intervention\Image\ImageManager;
|
||||
use Mockery as m;
|
||||
|
||||
class AvatarUploaderTest extends TestCase
|
||||
@@ -93,7 +93,7 @@ class AvatarUploaderTest extends TestCase
|
||||
$user->changeAvatarPath('ABCDEFGHabcdefgh.png');
|
||||
$user->syncOriginal();
|
||||
|
||||
$this->uploader->upload($user, ImageManagerStatic::canvas(50, 50));
|
||||
$this->uploader->upload($user, ImageManager::gd()->create(50, 50));
|
||||
|
||||
// Simulate saving
|
||||
foreach ($user->releaseAfterSaveCallbacks() as $callback) {
|
||||
|
Reference in New Issue
Block a user