Skip to content
Snippets Groups Projects
Verified Commit 5c93a9be authored by Sofiane Lasri's avatar Sofiane Lasri
Browse files

fix(tests): update assertions in UpdateImageDimensionsTest to use integer values

Updated the assertions in `UpdateImageDimensionsTest` to compare the width and height of the uploaded picture as integers instead of strings. This ensures that the tests correctly validate the image dimensions.
parent 2d76763e
No related branches found
No related tags found
1 merge request!44Resolve "Ajouter visionneuse de photos (comme sur mon portfolio)"
Pipeline #902 passed
......@@ -39,8 +39,8 @@ public function test_command_updates_image_dimensions(): void
$uploadedPicture->refresh();
$this->assertEquals('128', $uploadedPicture->width);
$this->assertEquals('128', $uploadedPicture->height);
$this->assertEquals(128, $uploadedPicture->width);
$this->assertEquals(128, $uploadedPicture->height);
Storage::disk('public')->assertExists($imagePath);
}
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment