From f1459dd5a9926c209a934554913b33e824b77e87 Mon Sep 17 00:00:00 2001 From: Kamil Kokot Date: Fri, 14 Jul 2017 15:40:41 +0200 Subject: [PATCH] Remove ProductVariantView::$appliedPromotions --- src/View/ProductVariantView.php | 7 +---- .../add_simple_product_to_cart_response.json | 3 +- ...upon_based_promotion_applied_response.json | 3 +- ...with_product_variant_summary_response.json | 6 ++-- ..._with_simple_product_summary_response.json | 3 +- ...with_product_variant_summary_response.json | 3 +- ..._with_simple_product_summary_response.json | 3 +- .../checkout/cart_addressed_response.json | 3 +- ...shipping_and_billing_address_response.json | 3 +- .../cart_with_chosen_payment_response.json | 3 +- .../cart_with_chosen_shipment_response.json | 3 +- ...an_product_list_page_by_code_response.json | 24 +++++---------- ...an_product_list_page_by_slug_response.json | 24 +++++---------- ...man_product_with_options_details_page.json | 21 +++++-------- .../german_simple_product_details_page.json | 3 +- ...ed_product_list_page_by_code_response.json | 6 ++-- ...ed_product_list_page_by_slug_response.json | 6 ++-- .../product_list_page_by_code_response.json | 30 +++++++------------ .../product_list_page_by_slug_response.json | 30 +++++++------------ ...ct_t_shirt_list_page_by_code_response.json | 6 ++-- ...ct_t_shirt_list_page_by_slug_response.json | 6 ++-- .../product_with_options_details_page.json | 21 +++++-------- .../product_with_variant_details_page.json | 6 ++-- .../product/simple_product_details_page.json | 3 +- 24 files changed, 74 insertions(+), 152 deletions(-) diff --git a/src/View/ProductVariantView.php b/src/View/ProductVariantView.php index c2070be6d..d9d7c185e 100644 --- a/src/View/ProductVariantView.php +++ b/src/View/ProductVariantView.php @@ -30,15 +30,10 @@ class ProductVariantView public $price; /** - * @var array + * @var ImageView[] */ public $images = []; - /** - * @var array - */ - public $appliedPromotions = []; - public function __construct() { $this->price = new PriceView(); diff --git a/tests/Responses/Expected/cart/add_simple_product_to_cart_response.json b/tests/Responses/Expected/cart/add_simple_product_to_cart_response.json index 299535206..130d0221e 100644 --- a/tests/Responses/Expected/cart/add_simple_product_to_cart_response.json +++ b/tests/Responses/Expected/cart/add_simple_product_to_cart_response.json @@ -30,8 +30,7 @@ "price": { "current": 1999 }, - "images": [], - "appliedPromotions": [] + "images": [] } ], "attributes": [ diff --git a/tests/Responses/Expected/cart/cart_with_coupon_based_promotion_applied_response.json b/tests/Responses/Expected/cart/cart_with_coupon_based_promotion_applied_response.json index a251463e7..f4fe663e0 100644 --- a/tests/Responses/Expected/cart/cart_with_coupon_based_promotion_applied_response.json +++ b/tests/Responses/Expected/cart/cart_with_coupon_based_promotion_applied_response.json @@ -30,8 +30,7 @@ "price": { "current": 1999 }, - "images": [], - "appliedPromotions": [] + "images": [] } ], "attributes": [ diff --git a/tests/Responses/Expected/cart/filled_cart_with_product_variant_summary_response.json b/tests/Responses/Expected/cart/filled_cart_with_product_variant_summary_response.json index 65a51a878..02250a87c 100644 --- a/tests/Responses/Expected/cart/filled_cart_with_product_variant_summary_response.json +++ b/tests/Responses/Expected/cart/filled_cart_with_product_variant_summary_response.json @@ -30,8 +30,7 @@ "price": { "current": 1999 }, - "images": [], - "appliedPromotions": [] + "images": [] } ], "attributes": [], @@ -88,8 +87,7 @@ "price": { "current": 500 }, - "images": [], - "appliedPromotions": [] + "images": [] } ], "attributes": [], diff --git a/tests/Responses/Expected/cart/filled_cart_with_simple_product_summary_response.json b/tests/Responses/Expected/cart/filled_cart_with_simple_product_summary_response.json index a7d8d17f8..a538373e9 100644 --- a/tests/Responses/Expected/cart/filled_cart_with_simple_product_summary_response.json +++ b/tests/Responses/Expected/cart/filled_cart_with_simple_product_summary_response.json @@ -30,8 +30,7 @@ "price": { "current": 1999 }, - "images": [], - "appliedPromotions": [] + "images": [] } ], "attributes": [ diff --git a/tests/Responses/Expected/cart/german_filled_cart_with_product_variant_summary_response.json b/tests/Responses/Expected/cart/german_filled_cart_with_product_variant_summary_response.json index 8a763411e..a1a4a0d02 100644 --- a/tests/Responses/Expected/cart/german_filled_cart_with_product_variant_summary_response.json +++ b/tests/Responses/Expected/cart/german_filled_cart_with_product_variant_summary_response.json @@ -36,8 +36,7 @@ "price": { "current": 590 }, - "images": [], - "appliedPromotions": [] + "images": [] } ], "attributes": [], diff --git a/tests/Responses/Expected/cart/german_filled_cart_with_simple_product_summary_response.json b/tests/Responses/Expected/cart/german_filled_cart_with_simple_product_summary_response.json index d6c2770f1..2ef3e52a3 100644 --- a/tests/Responses/Expected/cart/german_filled_cart_with_simple_product_summary_response.json +++ b/tests/Responses/Expected/cart/german_filled_cart_with_simple_product_summary_response.json @@ -30,8 +30,7 @@ "price": { "current": 2099 }, - "images": [], - "appliedPromotions": [] + "images": [] } ], "attributes": [ diff --git a/tests/Responses/Expected/checkout/cart_addressed_response.json b/tests/Responses/Expected/checkout/cart_addressed_response.json index 6b6198989..09d545906 100644 --- a/tests/Responses/Expected/checkout/cart_addressed_response.json +++ b/tests/Responses/Expected/checkout/cart_addressed_response.json @@ -30,8 +30,7 @@ "price": { "current": 1999 }, - "images": [], - "appliedPromotions": [] + "images": [] } ], "attributes": [ diff --git a/tests/Responses/Expected/checkout/cart_addressed_with_different_shipping_and_billing_address_response.json b/tests/Responses/Expected/checkout/cart_addressed_with_different_shipping_and_billing_address_response.json index 9e4c6eae8..842004e8e 100644 --- a/tests/Responses/Expected/checkout/cart_addressed_with_different_shipping_and_billing_address_response.json +++ b/tests/Responses/Expected/checkout/cart_addressed_with_different_shipping_and_billing_address_response.json @@ -30,8 +30,7 @@ "price": { "current": 1999 }, - "images": [], - "appliedPromotions": [] + "images": [] } ], "attributes": [ diff --git a/tests/Responses/Expected/checkout/cart_with_chosen_payment_response.json b/tests/Responses/Expected/checkout/cart_with_chosen_payment_response.json index ab7f6591c..b66b773e2 100644 --- a/tests/Responses/Expected/checkout/cart_with_chosen_payment_response.json +++ b/tests/Responses/Expected/checkout/cart_with_chosen_payment_response.json @@ -30,8 +30,7 @@ "price": { "current": 1999 }, - "images": [], - "appliedPromotions": [] + "images": [] } ], "attributes": [ diff --git a/tests/Responses/Expected/checkout/cart_with_chosen_shipment_response.json b/tests/Responses/Expected/checkout/cart_with_chosen_shipment_response.json index 36dc209b1..25b1e4e9d 100644 --- a/tests/Responses/Expected/checkout/cart_with_chosen_shipment_response.json +++ b/tests/Responses/Expected/checkout/cart_with_chosen_shipment_response.json @@ -30,8 +30,7 @@ "price": { "current": 1999 }, - "images": [], - "appliedPromotions": [] + "images": [] } ], "attributes": [ diff --git a/tests/Responses/Expected/product/german_product_list_page_by_code_response.json b/tests/Responses/Expected/product/german_product_list_page_by_code_response.json index 8b99a8701..a74ce0f63 100644 --- a/tests/Responses/Expected/product/german_product_list_page_by_code_response.json +++ b/tests/Responses/Expected/product/german_product_list_page_by_code_response.json @@ -36,8 +36,7 @@ "code": "thumbnail", "path": "\/uo\/mug.jpg" } - ], - "appliedPromotions": [] + ] } }, "attributes": [ @@ -87,8 +86,7 @@ "price": { "current": 500 }, - "images": [], - "appliedPromotions": [] + "images": [] }, "LARGE_RED_LOGAN_HAT_CODE": { "code": "LARGE_RED_LOGAN_HAT_CODE", @@ -104,8 +102,7 @@ "price": { "current": 999 }, - "images": [], - "appliedPromotions": [] + "images": [] }, "SMALL_BLUE_LOGAN_HAT_CODE": { "code": "SMALL_BLUE_LOGAN_HAT_CODE", @@ -121,8 +118,7 @@ "price": { "current": 1500 }, - "images": [], - "appliedPromotions": [] + "images": [] }, "LARGE_BLUE_LOGAN_HAT_CODE": { "code": "LARGE_BLUE_LOGAN_HAT_CODE", @@ -138,8 +134,7 @@ "price": { "current": 2599 }, - "images": [], - "appliedPromotions": [] + "images": [] } }, "attributes": [], @@ -171,8 +166,7 @@ "code": "thumbnail", "path": "\/uo\/mug.jpg" } - ], - "appliedPromotions": [] + ] } }, "attributes": [ @@ -221,8 +215,7 @@ "code": "thumbnail", "path": "\/uo\/samll-tshirt.jpg" } - ], - "appliedPromotions": [] + ] }, "LARGE_LOGAN_T_SHIRT_CODE": { "code": "LARGE_LOGAN_T_SHIRT_CODE", @@ -237,8 +230,7 @@ "code": "thumbnail", "path": "\/uo\/large-tshirt.jpg" } - ], - "appliedPromotions": [] + ] } }, "attributes": [], diff --git a/tests/Responses/Expected/product/german_product_list_page_by_slug_response.json b/tests/Responses/Expected/product/german_product_list_page_by_slug_response.json index abd815366..45861190a 100644 --- a/tests/Responses/Expected/product/german_product_list_page_by_slug_response.json +++ b/tests/Responses/Expected/product/german_product_list_page_by_slug_response.json @@ -36,8 +36,7 @@ "code": "thumbnail", "path": "\/uo\/mug.jpg" } - ], - "appliedPromotions": [] + ] } }, "attributes": [ @@ -87,8 +86,7 @@ "price": { "current": 500 }, - "images": [], - "appliedPromotions": [] + "images": [] }, "LARGE_RED_LOGAN_HAT_CODE": { "code": "LARGE_RED_LOGAN_HAT_CODE", @@ -104,8 +102,7 @@ "price": { "current": 999 }, - "images": [], - "appliedPromotions": [] + "images": [] }, "SMALL_BLUE_LOGAN_HAT_CODE": { "code": "SMALL_BLUE_LOGAN_HAT_CODE", @@ -121,8 +118,7 @@ "price": { "current": 1500 }, - "images": [], - "appliedPromotions": [] + "images": [] }, "LARGE_BLUE_LOGAN_HAT_CODE": { "code": "LARGE_BLUE_LOGAN_HAT_CODE", @@ -138,8 +134,7 @@ "price": { "current": 2599 }, - "images": [], - "appliedPromotions": [] + "images": [] } }, "attributes": [], @@ -171,8 +166,7 @@ "code": "thumbnail", "path": "\/uo\/mug.jpg" } - ], - "appliedPromotions": [] + ] } }, "attributes": [ @@ -221,8 +215,7 @@ "code": "thumbnail", "path": "\/uo\/samll-tshirt.jpg" } - ], - "appliedPromotions": [] + ] }, "LARGE_LOGAN_T_SHIRT_CODE": { "code": "LARGE_LOGAN_T_SHIRT_CODE", @@ -237,8 +230,7 @@ "code": "thumbnail", "path": "\/uo\/large-tshirt.jpg" } - ], - "appliedPromotions": [] + ] } }, "attributes": [], diff --git a/tests/Responses/Expected/product/german_product_with_options_details_page.json b/tests/Responses/Expected/product/german_product_with_options_details_page.json index c76469013..c2bb24179 100644 --- a/tests/Responses/Expected/product/german_product_with_options_details_page.json +++ b/tests/Responses/Expected/product/german_product_with_options_details_page.json @@ -26,8 +26,7 @@ "price": { "current": 500 }, - "images": [], - "appliedPromotions": [] + "images": [] }, "LARGE_RED_LOGAN_HAT_CODE": { "code": "LARGE_RED_LOGAN_HAT_CODE", @@ -43,8 +42,7 @@ "price": { "current": 999 }, - "images": [], - "appliedPromotions": [] + "images": [] }, "SMALL_BLUE_LOGAN_HAT_CODE": { "code": "SMALL_BLUE_LOGAN_HAT_CODE", @@ -60,8 +58,7 @@ "price": { "current": 1500 }, - "images": [], - "appliedPromotions": [] + "images": [] }, "LARGE_BLUE_LOGAN_HAT_CODE": { "code": "LARGE_BLUE_LOGAN_HAT_CODE", @@ -77,8 +74,7 @@ "price": { "current": 2599 }, - "images": [], - "appliedPromotions": [] + "images": [] } }, "attributes": [], @@ -110,8 +106,7 @@ "code": "thumbnail", "path": "\/uo\/mug.jpg" } - ], - "appliedPromotions": [] + ] } }, "attributes": [ @@ -160,8 +155,7 @@ "code": "thumbnail", "path": "\/uo\/samll-tshirt.jpg" } - ], - "appliedPromotions": [] + ] }, "LARGE_LOGAN_T_SHIRT_CODE": { "code": "LARGE_LOGAN_T_SHIRT_CODE", @@ -176,8 +170,7 @@ "code": "thumbnail", "path": "\/uo\/large-tshirt.jpg" } - ], - "appliedPromotions": [] + ] } }, "attributes": [], diff --git a/tests/Responses/Expected/product/german_simple_product_details_page.json b/tests/Responses/Expected/product/german_simple_product_details_page.json index a8f29a755..fc1d1aab1 100644 --- a/tests/Responses/Expected/product/german_simple_product_details_page.json +++ b/tests/Responses/Expected/product/german_simple_product_details_page.json @@ -25,8 +25,7 @@ "code": "thumbnail", "path": "\/uo\/mug.jpg" } - ], - "appliedPromotions": [] + ] } }, "attributes": [ diff --git a/tests/Responses/Expected/product/limited_product_list_page_by_code_response.json b/tests/Responses/Expected/product/limited_product_list_page_by_code_response.json index e579ad9da..1adb1eda3 100644 --- a/tests/Responses/Expected/product/limited_product_list_page_by_code_response.json +++ b/tests/Responses/Expected/product/limited_product_list_page_by_code_response.json @@ -36,8 +36,7 @@ "code": "thumbnail", "path": "\/uo\/samll-tshirt.jpg" } - ], - "appliedPromotions": [] + ] }, "LARGE_LOGAN_T_SHIRT_CODE": { "code": "LARGE_LOGAN_T_SHIRT_CODE", @@ -52,8 +51,7 @@ "code": "thumbnail", "path": "\/uo\/large-tshirt.jpg" } - ], - "appliedPromotions": [] + ] } }, "attributes": [], diff --git a/tests/Responses/Expected/product/limited_product_list_page_by_slug_response.json b/tests/Responses/Expected/product/limited_product_list_page_by_slug_response.json index 8dbefd108..db29153fe 100644 --- a/tests/Responses/Expected/product/limited_product_list_page_by_slug_response.json +++ b/tests/Responses/Expected/product/limited_product_list_page_by_slug_response.json @@ -36,8 +36,7 @@ "code": "thumbnail", "path": "\/uo\/samll-tshirt.jpg" } - ], - "appliedPromotions": [] + ] }, "LARGE_LOGAN_T_SHIRT_CODE": { "code": "LARGE_LOGAN_T_SHIRT_CODE", @@ -52,8 +51,7 @@ "code": "thumbnail", "path": "\/uo\/large-tshirt.jpg" } - ], - "appliedPromotions": [] + ] } }, "attributes": [], diff --git a/tests/Responses/Expected/product/product_list_page_by_code_response.json b/tests/Responses/Expected/product/product_list_page_by_code_response.json index ee5d7ed37..b456c84ee 100644 --- a/tests/Responses/Expected/product/product_list_page_by_code_response.json +++ b/tests/Responses/Expected/product/product_list_page_by_code_response.json @@ -36,8 +36,7 @@ "code": "thumbnail", "path": "\/uo\/mug.jpg" } - ], - "appliedPromotions": [] + ] } }, "attributes": [ @@ -86,8 +85,7 @@ "code": "thumbnail", "path": "\/uo\/samll-tshirt.jpg" } - ], - "appliedPromotions": [] + ] }, "LARGE_LOGAN_T_SHIRT_CODE": { "code": "LARGE_LOGAN_T_SHIRT_CODE", @@ -102,8 +100,7 @@ "code": "thumbnail", "path": "\/uo\/large-tshirt.jpg" } - ], - "appliedPromotions": [] + ] } }, "attributes": [], @@ -155,8 +152,7 @@ "price": { "current": 500 }, - "images": [], - "appliedPromotions": [] + "images": [] }, "LARGE_RED_LOGAN_HAT_CODE": { "code": "LARGE_RED_LOGAN_HAT_CODE", @@ -172,8 +168,7 @@ "price": { "current": 999 }, - "images": [], - "appliedPromotions": [] + "images": [] }, "SMALL_BLUE_LOGAN_HAT_CODE": { "code": "SMALL_BLUE_LOGAN_HAT_CODE", @@ -189,8 +184,7 @@ "price": { "current": 1500 }, - "images": [], - "appliedPromotions": [] + "images": [] }, "LARGE_BLUE_LOGAN_HAT_CODE": { "code": "LARGE_BLUE_LOGAN_HAT_CODE", @@ -206,8 +200,7 @@ "price": { "current": 2599 }, - "images": [], - "appliedPromotions": [] + "images": [] } }, "attributes": [], @@ -239,8 +232,7 @@ "code": "thumbnail", "path": "\/uo\/mug.jpg" } - ], - "appliedPromotions": [] + ] } }, "attributes": [ @@ -289,8 +281,7 @@ "code": "thumbnail", "path": "\/uo\/samll-tshirt.jpg" } - ], - "appliedPromotions": [] + ] }, "LARGE_LOGAN_T_SHIRT_CODE": { "code": "LARGE_LOGAN_T_SHIRT_CODE", @@ -305,8 +296,7 @@ "code": "thumbnail", "path": "\/uo\/large-tshirt.jpg" } - ], - "appliedPromotions": [] + ] } }, "attributes": [], diff --git a/tests/Responses/Expected/product/product_list_page_by_slug_response.json b/tests/Responses/Expected/product/product_list_page_by_slug_response.json index 68718792a..4ebf7bb1a 100644 --- a/tests/Responses/Expected/product/product_list_page_by_slug_response.json +++ b/tests/Responses/Expected/product/product_list_page_by_slug_response.json @@ -36,8 +36,7 @@ "code": "thumbnail", "path": "\/uo\/mug.jpg" } - ], - "appliedPromotions": [] + ] } }, "attributes": [ @@ -86,8 +85,7 @@ "code": "thumbnail", "path": "\/uo\/samll-tshirt.jpg" } - ], - "appliedPromotions": [] + ] }, "LARGE_LOGAN_T_SHIRT_CODE": { "code": "LARGE_LOGAN_T_SHIRT_CODE", @@ -102,8 +100,7 @@ "code": "thumbnail", "path": "\/uo\/large-tshirt.jpg" } - ], - "appliedPromotions": [] + ] } }, "attributes": [], @@ -155,8 +152,7 @@ "price": { "current": 500 }, - "images": [], - "appliedPromotions": [] + "images": [] }, "LARGE_RED_LOGAN_HAT_CODE": { "code": "LARGE_RED_LOGAN_HAT_CODE", @@ -172,8 +168,7 @@ "price": { "current": 999 }, - "images": [], - "appliedPromotions": [] + "images": [] }, "SMALL_BLUE_LOGAN_HAT_CODE": { "code": "SMALL_BLUE_LOGAN_HAT_CODE", @@ -189,8 +184,7 @@ "price": { "current": 1500 }, - "images": [], - "appliedPromotions": [] + "images": [] }, "LARGE_BLUE_LOGAN_HAT_CODE": { "code": "LARGE_BLUE_LOGAN_HAT_CODE", @@ -206,8 +200,7 @@ "price": { "current": 2599 }, - "images": [], - "appliedPromotions": [] + "images": [] } }, "attributes": [], @@ -239,8 +232,7 @@ "code": "thumbnail", "path": "\/uo\/mug.jpg" } - ], - "appliedPromotions": [] + ] } }, "attributes": [ @@ -289,8 +281,7 @@ "code": "thumbnail", "path": "\/uo\/samll-tshirt.jpg" } - ], - "appliedPromotions": [] + ] }, "LARGE_LOGAN_T_SHIRT_CODE": { "code": "LARGE_LOGAN_T_SHIRT_CODE", @@ -305,8 +296,7 @@ "code": "thumbnail", "path": "\/uo\/large-tshirt.jpg" } - ], - "appliedPromotions": [] + ] } }, "attributes": [], diff --git a/tests/Responses/Expected/product/product_t_shirt_list_page_by_code_response.json b/tests/Responses/Expected/product/product_t_shirt_list_page_by_code_response.json index 78618c9a1..aa36ba06a 100644 --- a/tests/Responses/Expected/product/product_t_shirt_list_page_by_code_response.json +++ b/tests/Responses/Expected/product/product_t_shirt_list_page_by_code_response.json @@ -36,8 +36,7 @@ "code": "thumbnail", "path": "\/uo\/samll-tshirt.jpg" } - ], - "appliedPromotions": [] + ] }, "LARGE_LOGAN_T_SHIRT_CODE": { "code": "LARGE_LOGAN_T_SHIRT_CODE", @@ -52,8 +51,7 @@ "code": "thumbnail", "path": "\/uo\/large-tshirt.jpg" } - ], - "appliedPromotions": [] + ] } }, "attributes": [], diff --git a/tests/Responses/Expected/product/product_t_shirt_list_page_by_slug_response.json b/tests/Responses/Expected/product/product_t_shirt_list_page_by_slug_response.json index 0dca20896..3f05ee170 100644 --- a/tests/Responses/Expected/product/product_t_shirt_list_page_by_slug_response.json +++ b/tests/Responses/Expected/product/product_t_shirt_list_page_by_slug_response.json @@ -36,8 +36,7 @@ "code": "thumbnail", "path": "\/uo\/samll-tshirt.jpg" } - ], - "appliedPromotions": [] + ] }, "LARGE_LOGAN_T_SHIRT_CODE": { "code": "LARGE_LOGAN_T_SHIRT_CODE", @@ -52,8 +51,7 @@ "code": "thumbnail", "path": "\/uo\/large-tshirt.jpg" } - ], - "appliedPromotions": [] + ] } }, "attributes": [], diff --git a/tests/Responses/Expected/product/product_with_options_details_page.json b/tests/Responses/Expected/product/product_with_options_details_page.json index cf72d281b..eaec23fdb 100644 --- a/tests/Responses/Expected/product/product_with_options_details_page.json +++ b/tests/Responses/Expected/product/product_with_options_details_page.json @@ -26,8 +26,7 @@ "price": { "current": 500 }, - "images": [], - "appliedPromotions": [] + "images": [] }, "LARGE_RED_LOGAN_HAT_CODE": { "code": "LARGE_RED_LOGAN_HAT_CODE", @@ -43,8 +42,7 @@ "price": { "current": 999 }, - "images": [], - "appliedPromotions": [] + "images": [] }, "SMALL_BLUE_LOGAN_HAT_CODE": { "code": "SMALL_BLUE_LOGAN_HAT_CODE", @@ -60,8 +58,7 @@ "price": { "current": 1500 }, - "images": [], - "appliedPromotions": [] + "images": [] }, "LARGE_BLUE_LOGAN_HAT_CODE": { "code": "LARGE_BLUE_LOGAN_HAT_CODE", @@ -77,8 +74,7 @@ "price": { "current": 2599 }, - "images": [], - "appliedPromotions": [] + "images": [] } }, "attributes": [], @@ -110,8 +106,7 @@ "code": "thumbnail", "path": "\/uo\/mug.jpg" } - ], - "appliedPromotions": [] + ] } }, "attributes": [ @@ -160,8 +155,7 @@ "code": "thumbnail", "path": "\/uo\/samll-tshirt.jpg" } - ], - "appliedPromotions": [] + ] }, "LARGE_LOGAN_T_SHIRT_CODE": { "code": "LARGE_LOGAN_T_SHIRT_CODE", @@ -176,8 +170,7 @@ "code": "thumbnail", "path": "\/uo\/large-tshirt.jpg" } - ], - "appliedPromotions": [] + ] } }, "attributes": [], diff --git a/tests/Responses/Expected/product/product_with_variant_details_page.json b/tests/Responses/Expected/product/product_with_variant_details_page.json index 75981f711..f020b9b93 100644 --- a/tests/Responses/Expected/product/product_with_variant_details_page.json +++ b/tests/Responses/Expected/product/product_with_variant_details_page.json @@ -25,8 +25,7 @@ "code": "thumbnail", "path": "\/uo\/samll-tshirt.jpg" } - ], - "appliedPromotions": [] + ] }, "LARGE_LOGAN_T_SHIRT_CODE": { "code": "LARGE_LOGAN_T_SHIRT_CODE", @@ -41,8 +40,7 @@ "code": "thumbnail", "path": "\/uo\/large-tshirt.jpg" } - ], - "appliedPromotions": [] + ] } }, "attributes": [], diff --git a/tests/Responses/Expected/product/simple_product_details_page.json b/tests/Responses/Expected/product/simple_product_details_page.json index fd832cc2a..fa9e04dab 100644 --- a/tests/Responses/Expected/product/simple_product_details_page.json +++ b/tests/Responses/Expected/product/simple_product_details_page.json @@ -25,8 +25,7 @@ "code": "thumbnail", "path": "\/uo\/mug.jpg" } - ], - "appliedPromotions": [] + ] } }, "attributes": [