From d0d2ee5a5a11d8715538047768d5e1e02b3b8ae6 Mon Sep 17 00:00:00 2001 From: Dasun Tharanga Date: Sat, 30 Dec 2023 14:22:02 +0530 Subject: [PATCH] Update DropzoneTest.php --- tests/Feature/DropzoneTest.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/Feature/DropzoneTest.php b/tests/Feature/DropzoneTest.php index a3c7a44..b568d6f 100644 --- a/tests/Feature/DropzoneTest.php +++ b/tests/Feature/DropzoneTest.php @@ -19,9 +19,7 @@ }); it('can upload file', function () { - $image = UploadedFile::fake()->image('foo.png'); - Livewire\Livewire::test(Dropzone::class, ['name' => 'foo']) - ->set('upload', $image) + ->set('upload', UploadedFile::fake()->image('foo.png')) ->assertDispatched('foo:fileAdded'); });