links sollte nun die gesamte APP_URL enthalten
This commit is contained in:
@@ -42,6 +42,8 @@ class SparkboothUploadTest extends TestCase
|
||||
])
|
||||
->assertJsonStructure(['url']);
|
||||
|
||||
$this->assertStringContainsString('/storage/uploads/test/', $response->json('url'));
|
||||
|
||||
$image = Image::first();
|
||||
$this->assertNotNull($image);
|
||||
$this->assertSame($gallery->id, $image->gallery_id);
|
||||
@@ -107,6 +109,8 @@ class SparkboothUploadTest extends TestCase
|
||||
])
|
||||
->assertJsonStructure(['url']);
|
||||
|
||||
$this->assertStringContainsString('/storage/uploads/base64/', $response->json('url'));
|
||||
|
||||
Storage::disk('public')->assertExists('uploads/base64/custom.png');
|
||||
|
||||
$this->assertDatabaseHas('images', [
|
||||
|
||||
Reference in New Issue
Block a user