From eead6630a9ba7dbc16a5495c36523c52ebcd4b2a Mon Sep 17 00:00:00 2001 From: Remy LENOIR Date: Wed, 20 Dec 2017 15:12:46 +0100 Subject: [PATCH 1/4] add description and shortdescription on view product --- src/Factory/ProductViewFactory.php | 2 ++ src/Resources/config/serializer/ProductView.yml | 6 ++++++ src/View/ProductView.php | 10 ++++++++++ 3 files changed, 18 insertions(+) diff --git a/src/Factory/ProductViewFactory.php b/src/Factory/ProductViewFactory.php index f21191b1a..78224d559 100644 --- a/src/Factory/ProductViewFactory.php +++ b/src/Factory/ProductViewFactory.php @@ -57,6 +57,8 @@ public function create(ProductInterface $product, ChannelInterface $channel, str $translation = $product->getTranslation($locale); $productView->name = $translation->getName(); $productView->slug = $translation->getSlug(); + $productView->description = $translation->getDescription(); + $productView->shortDescription = $translation->getShortDescription(); /** @var ProductImageInterface $image */ foreach ($product->getImages() as $image) { diff --git a/src/Resources/config/serializer/ProductView.yml b/src/Resources/config/serializer/ProductView.yml index dc78e1c1e..36fc8bf6f 100644 --- a/src/Resources/config/serializer/ProductView.yml +++ b/src/Resources/config/serializer/ProductView.yml @@ -14,6 +14,12 @@ Sylius\ShopApiPlugin\View\ProductView: breadcrumb: expose: true type: string + description: + expose: true + type: string + shortDescription: + expose: true + type: string averageRating: expose: true type: integer diff --git a/src/View/ProductView.php b/src/View/ProductView.php index 023fb438a..01c6ec1f7 100644 --- a/src/View/ProductView.php +++ b/src/View/ProductView.php @@ -26,6 +26,16 @@ class ProductView */ public $breadcrumb; + /** + * @var string + */ + public $description; + + /** + * @var string + */ + public $shortDescription; + /** * @var string */ From 3d01f7e886c66a797596d8535e102576394be63b Mon Sep 17 00:00:00 2001 From: Remy LENOIR Date: Thu, 11 Jan 2018 10:25:31 +0100 Subject: [PATCH 2/4] adding metakeywords and metadescription --- src/Factory/ProductViewFactory.php | 2 ++ src/Resources/config/serializer/ProductView.yml | 6 ++++++ src/View/ProductView.php | 10 ++++++++++ 3 files changed, 18 insertions(+) diff --git a/src/Factory/ProductViewFactory.php b/src/Factory/ProductViewFactory.php index 78224d559..172fe981a 100644 --- a/src/Factory/ProductViewFactory.php +++ b/src/Factory/ProductViewFactory.php @@ -59,6 +59,8 @@ public function create(ProductInterface $product, ChannelInterface $channel, str $productView->slug = $translation->getSlug(); $productView->description = $translation->getDescription(); $productView->shortDescription = $translation->getShortDescription(); + $productView->metaKeywords = $translation->getMetaKeywords(); + $productView->metaDescription = $translation->getMetaDescription(); /** @var ProductImageInterface $image */ foreach ($product->getImages() as $image) { diff --git a/src/Resources/config/serializer/ProductView.yml b/src/Resources/config/serializer/ProductView.yml index 36fc8bf6f..33c61a631 100644 --- a/src/Resources/config/serializer/ProductView.yml +++ b/src/Resources/config/serializer/ProductView.yml @@ -20,6 +20,12 @@ Sylius\ShopApiPlugin\View\ProductView: shortDescription: expose: true type: string + metaKeywords: + expose: true + type: string + metaDescription: + expose: true + type: string averageRating: expose: true type: integer diff --git a/src/View/ProductView.php b/src/View/ProductView.php index 01c6ec1f7..34f66719b 100644 --- a/src/View/ProductView.php +++ b/src/View/ProductView.php @@ -36,6 +36,16 @@ class ProductView */ public $shortDescription; + /** + * @var string + */ + public $metaKeywords; + + /** + * @var string + */ + public $metaDescription; + /** * @var string */ From 68fccbefa353e912aefef966679f986486ce582d Mon Sep 17 00:00:00 2001 From: Remy LENOIR Date: Tue, 23 Jan 2018 20:08:37 +0100 Subject: [PATCH 3/4] Fix tests --- spec/Factory/ProductViewFactorySpec.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spec/Factory/ProductViewFactorySpec.php b/spec/Factory/ProductViewFactorySpec.php index 0f2179ddd..a071e954e 100644 --- a/spec/Factory/ProductViewFactorySpec.php +++ b/spec/Factory/ProductViewFactorySpec.php @@ -76,6 +76,10 @@ function it_builds_product_view( $productTranslation->getName()->willReturn('Hat'); $productTranslation->getSlug()->willReturn('hat'); + $productTranslation->getDescription()->willReturn('Et voluptas qui fuga aut unde ex non ducimus'); + $productTranslation->getShortDescription()->willReturn('Dolormque quibudam dolor laudantium modi temporibus.'); + $productTranslation->getMetaKeywords()->willReturn('hat'); + $productTranslation->getMetaDescription()->willReturn('hat'); $taxonView = new ProductTaxonView(); $taxonView->main = 'MAIN'; @@ -86,6 +90,10 @@ function it_builds_product_view( $productView->code = 'HAT_CODE'; $productView->averageRating = 5; $productView->slug = 'hat'; + $productView->description = 'Et voluptas qui fuga aut unde ex non ducimus'; + $productView->shortDescription = 'Dolormque quibudam dolor laudantium modi temporibus.'; + $productView->metaKeywords = 'hat'; + $productView->metaDescription = 'hat'; $productView->taxons = $taxonView; $productView->images = [new ImageView(), new ImageView()]; $productView->attributes = []; From f732c14c59905a0b6d8765685c11e5f9480b84ec Mon Sep 17 00:00:00 2001 From: Remy LENOIR Date: Wed, 24 Jan 2018 11:04:12 +0100 Subject: [PATCH 4/4] Fix test --- .../cart/add_multiple_products_to_cart_response.json | 3 +++ ...nt_based_on_options_multiple_times_to_cart_response.json | 1 + ...d_product_variant_based_on_options_to_cart_response.json | 1 + ...add_product_variant_multiple_times_to_cart_response.json | 1 + .../Expected/cart/add_product_variant_to_cart_response.json | 1 + .../add_simple_product_multiple_times_to_cart_response.json | 1 + .../Expected/cart/add_simple_product_to_cart_response.json | 1 + .../cart_with_coupon_based_promotion_applied_response.json | 1 + .../filled_cart_with_product_variant_summary_response.json | 2 ++ .../filled_cart_with_simple_product_summary_response.json | 1 + ...n_filled_cart_with_product_variant_summary_response.json | 1 + .../cart/reprocessed_cart_after_deleting_an_item.json | 1 + .../Expected/checkout/cart_addressed_response.json | 1 + ...ith_different_shipping_and_billing_address_response.json | 1 + .../checkout/cart_with_chosen_payment_response.json | 1 + .../checkout/cart_with_chosen_shipment_response.json | 1 + ...rt_with_chosen_shipment_with_per_item_rate_response.json | 1 + ...rt_with_chosen_shipment_with_per_item_rate_response.json | 1 + .../product/german_product_list_page_by_code_response.json | 2 ++ .../product/german_product_list_page_by_slug_response.json | 2 ++ .../product/german_product_with_options_details_page.json | 2 ++ .../product/limited_product_list_page_by_code_response.json | 1 + .../product/limited_product_list_page_by_slug_response.json | 1 + .../Expected/product/product_list_latest_2_response.json | 4 ++++ .../Expected/product/product_list_latest_4_response.json | 6 ++++++ .../product/product_list_page_by_code_response.json | 5 +++++ .../product/product_list_page_by_slug_response.json | 5 +++++ .../product/product_t_shirt_list_page_by_code_response.json | 1 + .../product/product_t_shirt_list_page_by_slug_response.json | 1 + .../Expected/product/product_with_options_details_page.json | 3 +++ .../Expected/product/product_with_variant_details_page.json | 1 + .../product/product_without_taxons_details_page.json | 1 + .../Expected/product/simple_product_details_page.json | 1 + 33 files changed, 57 insertions(+) diff --git a/tests/Responses/Expected/cart/add_multiple_products_to_cart_response.json b/tests/Responses/Expected/cart/add_multiple_products_to_cart_response.json index c59a7d393..12a716fa5 100644 --- a/tests/Responses/Expected/cart/add_multiple_products_to_cart_response.json +++ b/tests/Responses/Expected/cart/add_multiple_products_to_cart_response.json @@ -13,6 +13,7 @@ "code": "LOGAN_MUG_CODE", "name": "Logan Mug", "slug": "logan-mug", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "MUG", @@ -63,6 +64,7 @@ "code": "LOGAN_T_SHIRT_CODE", "name": "Logan T-Shirt", "slug": "logan-t-shirt", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "T_SHIRTS", @@ -115,6 +117,7 @@ "code": "LOGAN_HAT_CODE", "name": "Logan Hat", "slug": "logan-hat", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "HAT", diff --git a/tests/Responses/Expected/cart/add_product_variant_based_on_options_multiple_times_to_cart_response.json b/tests/Responses/Expected/cart/add_product_variant_based_on_options_multiple_times_to_cart_response.json index f8cd34587..48f932007 100644 --- a/tests/Responses/Expected/cart/add_product_variant_based_on_options_multiple_times_to_cart_response.json +++ b/tests/Responses/Expected/cart/add_product_variant_based_on_options_multiple_times_to_cart_response.json @@ -13,6 +13,7 @@ "code": "LOGAN_HAT_CODE", "name": "Logan Hat", "slug": "logan-hat", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "HAT", diff --git a/tests/Responses/Expected/cart/add_product_variant_based_on_options_to_cart_response.json b/tests/Responses/Expected/cart/add_product_variant_based_on_options_to_cart_response.json index 4f301e8f7..7c89e2e89 100644 --- a/tests/Responses/Expected/cart/add_product_variant_based_on_options_to_cart_response.json +++ b/tests/Responses/Expected/cart/add_product_variant_based_on_options_to_cart_response.json @@ -13,6 +13,7 @@ "code": "LOGAN_HAT_CODE", "name": "Logan Hat", "slug": "logan-hat", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "HAT", diff --git a/tests/Responses/Expected/cart/add_product_variant_multiple_times_to_cart_response.json b/tests/Responses/Expected/cart/add_product_variant_multiple_times_to_cart_response.json index 26a61b7fa..3700e3889 100644 --- a/tests/Responses/Expected/cart/add_product_variant_multiple_times_to_cart_response.json +++ b/tests/Responses/Expected/cart/add_product_variant_multiple_times_to_cart_response.json @@ -13,6 +13,7 @@ "code": "LOGAN_T_SHIRT_CODE", "name": "Logan T-Shirt", "slug": "logan-t-shirt", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "T_SHIRTS", diff --git a/tests/Responses/Expected/cart/add_product_variant_to_cart_response.json b/tests/Responses/Expected/cart/add_product_variant_to_cart_response.json index 23bb5c3ec..ceb14516e 100644 --- a/tests/Responses/Expected/cart/add_product_variant_to_cart_response.json +++ b/tests/Responses/Expected/cart/add_product_variant_to_cart_response.json @@ -13,6 +13,7 @@ "code": "LOGAN_T_SHIRT_CODE", "name": "Logan T-Shirt", "slug": "logan-t-shirt", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "T_SHIRTS", diff --git a/tests/Responses/Expected/cart/add_simple_product_multiple_times_to_cart_response.json b/tests/Responses/Expected/cart/add_simple_product_multiple_times_to_cart_response.json index 6315d96cc..877ac5806 100644 --- a/tests/Responses/Expected/cart/add_simple_product_multiple_times_to_cart_response.json +++ b/tests/Responses/Expected/cart/add_simple_product_multiple_times_to_cart_response.json @@ -13,6 +13,7 @@ "code": "LOGAN_MUG_CODE", "name": "Logan Mug", "slug": "logan-mug", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "MUG", 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 a7a41588b..fa03a1fea 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 @@ -13,6 +13,7 @@ "code": "LOGAN_MUG_CODE", "name": "Logan Mug", "slug": "logan-mug", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "MUG", 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 2f4abd9f2..bfbf3e861 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 @@ -13,6 +13,7 @@ "code": "LOGAN_MUG_CODE", "name": "Logan Mug", "slug": "logan-mug", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "MUG", 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 75c83d896..da79566ae 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 @@ -13,6 +13,7 @@ "code": "LOGAN_T_SHIRT_CODE", "name": "Logan T-Shirt", "slug": "logan-t-shirt", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "T_SHIRTS", @@ -66,6 +67,7 @@ "name": "Logan Hat", "slug": "logan-hat", "averageRating": 0, + "description": "Some description Lorem ipsum dolor sit amet.", "taxons": { "main": "HAT", "others": [ 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 826e1749e..ca67be8b6 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 @@ -13,6 +13,7 @@ "code": "LOGAN_MUG_CODE", "name": "Logan Mug", "slug": "logan-mug", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "MUG", 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 017c3ae78..6854f2c54 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 @@ -13,6 +13,7 @@ "code": "LOGAN_HAT_CODE", "name": "Logan Hut", "slug": "logan-hut", + "description": "Einige Beschreibung Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "HAT", diff --git a/tests/Responses/Expected/cart/reprocessed_cart_after_deleting_an_item.json b/tests/Responses/Expected/cart/reprocessed_cart_after_deleting_an_item.json index 8fe13d73e..a66d4095f 100644 --- a/tests/Responses/Expected/cart/reprocessed_cart_after_deleting_an_item.json +++ b/tests/Responses/Expected/cart/reprocessed_cart_after_deleting_an_item.json @@ -13,6 +13,7 @@ "code": "LOGAN_MUG_CODE", "name": "Logan Mug", "slug": "logan-mug", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "MUG", diff --git a/tests/Responses/Expected/checkout/cart_addressed_response.json b/tests/Responses/Expected/checkout/cart_addressed_response.json index 37eee518c..f09e01d8b 100644 --- a/tests/Responses/Expected/checkout/cart_addressed_response.json +++ b/tests/Responses/Expected/checkout/cart_addressed_response.json @@ -13,6 +13,7 @@ "code": "LOGAN_MUG_CODE", "name": "Logan Mug", "slug": "logan-mug", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "MUG", 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 44675864a..b9e5853f6 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 @@ -13,6 +13,7 @@ "code": "LOGAN_MUG_CODE", "name": "Logan Mug", "slug": "logan-mug", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "MUG", 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 915a4fb49..86eb87c49 100644 --- a/tests/Responses/Expected/checkout/cart_with_chosen_payment_response.json +++ b/tests/Responses/Expected/checkout/cart_with_chosen_payment_response.json @@ -13,6 +13,7 @@ "code": "LOGAN_MUG_CODE", "name": "Logan Mug", "slug": "logan-mug", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "MUG", 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 9034ee139..b9d1bdf60 100644 --- a/tests/Responses/Expected/checkout/cart_with_chosen_shipment_response.json +++ b/tests/Responses/Expected/checkout/cart_with_chosen_shipment_response.json @@ -13,6 +13,7 @@ "code": "LOGAN_MUG_CODE", "name": "Logan Mug", "slug": "logan-mug", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "MUG", diff --git a/tests/Responses/Expected/checkout/cart_with_chosen_shipment_with_per_item_rate_response.json b/tests/Responses/Expected/checkout/cart_with_chosen_shipment_with_per_item_rate_response.json index e8b12fe55..9ca294dc6 100644 --- a/tests/Responses/Expected/checkout/cart_with_chosen_shipment_with_per_item_rate_response.json +++ b/tests/Responses/Expected/checkout/cart_with_chosen_shipment_with_per_item_rate_response.json @@ -13,6 +13,7 @@ "code": "LOGAN_MUG_CODE", "name": "Logan Mug", "slug": "logan-mug", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "MUG", diff --git a/tests/Responses/Expected/checkout/modified_cart_with_chosen_shipment_with_per_item_rate_response.json b/tests/Responses/Expected/checkout/modified_cart_with_chosen_shipment_with_per_item_rate_response.json index 19cc5282a..0e1f26d1e 100644 --- a/tests/Responses/Expected/checkout/modified_cart_with_chosen_shipment_with_per_item_rate_response.json +++ b/tests/Responses/Expected/checkout/modified_cart_with_chosen_shipment_with_per_item_rate_response.json @@ -13,6 +13,7 @@ "code": "LOGAN_MUG_CODE", "name": "Logan Mug", "slug": "logan-mug", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "MUG", 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 8a847da92..2fbf22c5e 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 @@ -64,6 +64,7 @@ "code": "LOGAN_HAT_CODE", "name": "Logan Hut", "slug": "logan-hut", + "description": "Einige Beschreibung Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "HAT", @@ -199,6 +200,7 @@ "code": "LOGAN_T_SHIRT_CODE", "name": "Logan T-Shirt", "slug": "logan-t-shirt", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "T_SHIRTS", 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 8c3ff71ad..e8278e90d 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 @@ -64,6 +64,7 @@ "code": "LOGAN_HAT_CODE", "name": "Logan Hut", "slug": "logan-hut", + "description": "Einige Beschreibung Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "HAT", @@ -199,6 +200,7 @@ "code": "LOGAN_T_SHIRT_CODE", "name": "Logan T-Shirt", "slug": "logan-t-shirt", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "T_SHIRTS", 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 82aa0b5c8..84e9ca9d2 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 @@ -3,6 +3,7 @@ "name": "Logan Hut", "slug": "logan-hut", "breadcrumb": "hute\/logan-hut", + "description": "Einige Beschreibung Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "HAT", @@ -138,6 +139,7 @@ "code": "LOGAN_T_SHIRT_CODE", "name": "Logan T-Shirt", "slug": "logan-t-shirt", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "T_SHIRTS", 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 f7d9d2e11..64c83ab36 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 @@ -14,6 +14,7 @@ "code": "LOGAN_T_SHIRT_CODE", "name": "Logan T-Shirt", "slug": "logan-t-shirt", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "T_SHIRTS", 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 1640c5dba..75f4aa806 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 @@ -14,6 +14,7 @@ "code": "LOGAN_T_SHIRT_CODE", "name": "Logan T-Shirt", "slug": "logan-t-shirt", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "T_SHIRTS", diff --git a/tests/Responses/Expected/product/product_list_latest_2_response.json b/tests/Responses/Expected/product/product_list_latest_2_response.json index 2dbe22569..ab523b96e 100644 --- a/tests/Responses/Expected/product/product_list_latest_2_response.json +++ b/tests/Responses/Expected/product/product_list_latest_2_response.json @@ -4,6 +4,7 @@ "code": "LOGAN_HAT_CODE", "name": "Logan Hat", "slug": "logan-hat", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "HAT", @@ -89,6 +90,7 @@ "code": "LOGAN_MUG_CODE", "name": "Logan Mug", "slug": "logan-mug", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "MUG", @@ -139,6 +141,7 @@ "code": "LOGAN_T_SHIRT_CODE", "name": "Logan T-Shirt", "slug": "logan-t-shirt", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "T_SHIRTS", @@ -216,6 +219,7 @@ "code": "LOGAN_MUG_CODE", "name": "Logan Mug", "slug": "logan-mug", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "MUG", diff --git a/tests/Responses/Expected/product/product_list_latest_4_response.json b/tests/Responses/Expected/product/product_list_latest_4_response.json index 660c87daf..2bf8e77a8 100644 --- a/tests/Responses/Expected/product/product_list_latest_4_response.json +++ b/tests/Responses/Expected/product/product_list_latest_4_response.json @@ -4,6 +4,7 @@ "code": "LOGAN_HAT_CODE", "name": "Logan Hat", "slug": "logan-hat", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "HAT", @@ -89,6 +90,7 @@ "code": "LOGAN_MUG_CODE", "name": "Logan Mug", "slug": "logan-mug", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "MUG", @@ -139,6 +141,7 @@ "code": "LOGAN_T_SHIRT_CODE", "name": "Logan T-Shirt", "slug": "logan-t-shirt", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "T_SHIRTS", @@ -216,6 +219,7 @@ "code": "LOGAN_MUG_CODE", "name": "Logan Mug", "slug": "logan-mug", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "MUG", @@ -266,6 +270,7 @@ "code": "LOGAN_SHOES_CODE", "name": "Logan Shoes", "slug": "logan-shoes", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "others": [] @@ -284,6 +289,7 @@ "code": "LOGAN_T_SHIRT_CODE", "name": "Logan T-Shirt", "slug": "logan-t-shirt", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "T_SHIRTS", 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 4acea871e..b8649ccd7 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 @@ -14,6 +14,7 @@ "code": "LOGAN_MUG_CODE", "name": "Logan Mug", "slug": "logan-mug", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "MUG", @@ -64,6 +65,7 @@ "code": "LOGAN_T_SHIRT_CODE", "name": "Logan T-Shirt", "slug": "logan-t-shirt", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "T_SHIRTS", @@ -132,6 +134,7 @@ "code": "LOGAN_HAT_CODE", "name": "Logan Hat", "slug": "logan-hat", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "HAT", @@ -217,6 +220,7 @@ "code": "LOGAN_MUG_CODE", "name": "Logan Mug", "slug": "logan-mug", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "MUG", @@ -267,6 +271,7 @@ "code": "LOGAN_T_SHIRT_CODE", "name": "Logan T-Shirt", "slug": "logan-t-shirt", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "T_SHIRTS", 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 76c26dad7..f559f1f49 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 @@ -14,6 +14,7 @@ "code": "LOGAN_MUG_CODE", "name": "Logan Mug", "slug": "logan-mug", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "MUG", @@ -64,6 +65,7 @@ "code": "LOGAN_T_SHIRT_CODE", "name": "Logan T-Shirt", "slug": "logan-t-shirt", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "T_SHIRTS", @@ -132,6 +134,7 @@ "code": "LOGAN_HAT_CODE", "name": "Logan Hat", "slug": "logan-hat", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "HAT", @@ -217,6 +220,7 @@ "code": "LOGAN_MUG_CODE", "name": "Logan Mug", "slug": "logan-mug", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "MUG", @@ -267,6 +271,7 @@ "code": "LOGAN_T_SHIRT_CODE", "name": "Logan T-Shirt", "slug": "logan-t-shirt", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "T_SHIRTS", 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 fdb54db20..212e28aab 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 @@ -14,6 +14,7 @@ "code": "LOGAN_T_SHIRT_CODE", "name": "Logan T-Shirt", "slug": "logan-t-shirt", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "T_SHIRTS", 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 17bd073b5..9feb42c6e 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 @@ -14,6 +14,7 @@ "code": "LOGAN_T_SHIRT_CODE", "name": "Logan T-Shirt", "slug": "logan-t-shirt", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "T_SHIRTS", 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 d055b7240..b2b3def8c 100644 --- a/tests/Responses/Expected/product/product_with_options_details_page.json +++ b/tests/Responses/Expected/product/product_with_options_details_page.json @@ -3,6 +3,7 @@ "name": "Logan Hat", "slug": "logan-hat", "breadcrumb": "categories\/hats\/logan-hat", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "HAT", @@ -88,6 +89,7 @@ "code": "LOGAN_MUG_CODE", "name": "Logan Mug", "slug": "logan-mug", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "MUG", @@ -138,6 +140,7 @@ "code": "LOGAN_T_SHIRT_CODE", "name": "Logan T-Shirt", "slug": "logan-t-shirt", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "T_SHIRTS", 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 ccf82236d..ff4cd956b 100644 --- a/tests/Responses/Expected/product/product_with_variant_details_page.json +++ b/tests/Responses/Expected/product/product_with_variant_details_page.json @@ -3,6 +3,7 @@ "name": "Logan T-Shirt", "slug": "logan-t-shirt", "breadcrumb": "categories\/t-shirts\/logan-t-shirt", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "T_SHIRTS", diff --git a/tests/Responses/Expected/product/product_without_taxons_details_page.json b/tests/Responses/Expected/product/product_without_taxons_details_page.json index a5881ec3a..a72e474d0 100644 --- a/tests/Responses/Expected/product/product_without_taxons_details_page.json +++ b/tests/Responses/Expected/product/product_without_taxons_details_page.json @@ -3,6 +3,7 @@ "name": "Logan Shoes", "slug": "logan-shoes", "breadcrumb": "logan-shoes", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "others": [] diff --git a/tests/Responses/Expected/product/simple_product_details_page.json b/tests/Responses/Expected/product/simple_product_details_page.json index f7c1a32c6..8bae13048 100644 --- a/tests/Responses/Expected/product/simple_product_details_page.json +++ b/tests/Responses/Expected/product/simple_product_details_page.json @@ -3,6 +3,7 @@ "name": "Logan Mug", "slug": "logan-mug", "breadcrumb": "categories\/mugs\/logan-mug", + "description": "Some description Lorem ipsum dolor sit amet.", "averageRating": 0, "taxons": { "main": "MUG",