From 1233bc434fa4410d3c2a0cfa788098e77af6a035 Mon Sep 17 00:00:00 2001 From: Roelof Roos Date: Tue, 7 Mar 2023 17:08:52 +0100 Subject: [PATCH] PHPUnit 10.x dataProvider support --- .../Http/Controllers/EditorJsImageUploadControllerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Feature/Http/Controllers/EditorJsImageUploadControllerTest.php b/tests/Feature/Http/Controllers/EditorJsImageUploadControllerTest.php index 9cd35d1..2ac0543 100644 --- a/tests/Feature/Http/Controllers/EditorJsImageUploadControllerTest.php +++ b/tests/Feature/Http/Controllers/EditorJsImageUploadControllerTest.php @@ -167,7 +167,7 @@ public function testSubmittingImageUrlWithErrors(): void * Provides a list of valid image files to test. * @return string[][] */ - public function provideValidFiles(): array + public static function provideValidFiles(): array { return [ 'gif' => [test_resource('responses/image.gif')], @@ -182,7 +182,7 @@ public function provideValidFiles(): array * Provides a subset of the available image formats, since svg isn't supported by the GD library. * @return string[][] */ - public function provideValidFilesForImageUpload(): array + public static function provideValidFilesForImageUpload(): array { return Arr::except($this->provideValidFiles(), [ 'svg',