Update ImageThumbnailSupersedeTest.php

pull/7303/head
Shlee 1 week ago committed by GitHub
parent 31c652427f
commit 79ad664159
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -3,6 +3,7 @@
use App\Models\Media;
use App\Models\User;
use App\Util\Media\Image;
use App\Util\Media\ImageDriverManager;
use Illuminate\Foundation\Testing\LazilyRefreshDatabase;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Storage;
@ -25,8 +26,8 @@ beforeEach(function () {
// when its runtime isn't available locally so contributors without
// libvips/ext-ffi aren't blocked; CI installs libvips so it still runs.
try {
\App\Util\Media\ImageDriverManager::createImageManager();
} catch (\Throwable $e) {
ImageDriverManager::createImageManager();
} catch (Throwable $e) {
test()->markTestSkipped('Image driver "'.config('image.driver').'" is not available: '.$e->getMessage());
}

Loading…
Cancel
Save