Skip to content

Commit

Permalink
Merge branch 'next' into feature/FOUR-13174
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanpro committed Jan 18, 2024
2 parents b19853a + 75098b4 commit f8ec392
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/Feature/Api/ProcessTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1273,13 +1273,12 @@ public function testGetMediaImagesRoute()
public function testDeleteMediaImages()
{
$process = Process::factory()->create();
$faker = app(Faker::class);
$imageContent = file_get_contents($faker->imageUrl());
$imageContent = file_get_contents(__DIR__.'/images/640x480.png');
$imagePath = storage_path('app/test-image.jpg');

file_put_contents($imagePath, $imageContent);

$uploadedFile = new UploadedFile($imagePath, 'test-image.jpg', 'image/jpeg', null, true);

$uploadedFile = new UploadedFile($imagePath, 'test-image.jpg', 'image/jpeg', null, true);
$process->addMedia($uploadedFile)->toMediaCollection('images_carousel');

$mediaImagen = $process->getFirstMedia('images_carousel');
Expand Down
Binary file added tests/Feature/Api/images/640x480.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f8ec392

Please sign in to comment.