@@ -507,6 +507,7 @@ public function testAddImage(int $productId): int
507507
508508 // Check URLs format based on the newly created Image ID
509509 $ expectedImage = [
510+ 'productId ' => $ productId ,
510511 'imageId ' => $ imageId ,
511512 'imageUrl ' => 'http://myshop.com/img/p/ ' . $ this ->getImagePath ($ imageId , false ),
512513 'thumbnailUrl ' => 'http://myshop.com/img/p/ ' . $ this ->getImagePath ($ imageId , true ),
@@ -635,6 +636,7 @@ public function testListImages(int $productId, int $imageId): void
635636 $ this ->assertEquals (2 , count ($ productImages ));
636637 $ this ->assertEquals ([
637638 [
639+ 'productId ' => $ productId ,
638640 'imageId ' => $ imageId ,
639641 'imageUrl ' => 'http://myshop.com/img/p/ ' . $ this ->getImagePath ($ imageId , false ),
640642 'thumbnailUrl ' => 'http://myshop.com/img/p/ ' . $ this ->getImagePath ($ imageId , true ),
@@ -649,6 +651,7 @@ public function testListImages(int $productId, int $imageId): void
649651 ],
650652 ],
651653 [
654+ 'productId ' => $ productId ,
652655 'imageId ' => $ newImageId ,
653656 'imageUrl ' => 'http://myshop.com/img/p/ ' . $ this ->getImagePath ($ newImageId , false ),
654657 'thumbnailUrl ' => 'http://myshop.com/img/p/ ' . $ this ->getImagePath ($ newImageId , true ),
@@ -686,6 +689,7 @@ public function testListImages(int $productId, int $imageId): void
686689 // The images are sorted differently (since they are automatically order by position) and the cover has been updated
687690 $ this ->assertEquals ([
688691 [
692+ 'productId ' => $ productId ,
689693 'imageId ' => $ newImageId ,
690694 'imageUrl ' => 'http://myshop.com/img/p/ ' . $ this ->getImagePath ($ newImageId , false ),
691695 'thumbnailUrl ' => 'http://myshop.com/img/p/ ' . $ this ->getImagePath ($ newImageId , true ),
@@ -700,6 +704,7 @@ public function testListImages(int $productId, int $imageId): void
700704 ],
701705 ],
702706 [
707+ 'productId ' => $ productId ,
703708 'imageId ' => $ imageId ,
704709 'imageUrl ' => 'http://myshop.com/img/p/ ' . $ this ->getImagePath ($ imageId , false ),
705710 'thumbnailUrl ' => 'http://myshop.com/img/p/ ' . $ this ->getImagePath ($ imageId , true ),
0 commit comments