Skip to content

Commit 41f48ee

Browse files
MAGETWO-67496: Apply minimum advertised price to product on a product level when Display Actual Price On Gesture
1 parent 7939061 commit 41f48ee

File tree

2 files changed

+42
-2
lines changed

2 files changed

+42
-2
lines changed

dev/tests/functional/tests/app/Magento/Msrp/Test/Repository/CatalogProductSimple.xml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
<field name="msrp_display_actual_price_type" xsi:type="string">In Cart</field>
104104
</dataset>
105105

106-
<dataset name="msrp_on_gesture_for_product_with_quotes_in_product_name">
106+
<dataset name="msrp_on_gesture_for_product_with_single_quotes_in_product_name">
107107
<field name="name" xsi:type="string">\'Simple Product with\' msrp on gesture %isolation%</field>
108108
<field name="url_key" xsi:type="string">simple-product-with-msrp on gesture-%isolation%</field>
109109
<field name="sku" xsi:type="string">sku_simple_product_with_msrp_on_gesture_%isolation%</field>
@@ -134,5 +134,37 @@
134134
<field name="msrp" xsi:type="string">35</field>
135135
<field name="msrp_display_actual_price_type" xsi:type="string">On Gesture</field>
136136
</dataset>
137+
138+
<dataset name="msrp_on_gesture_for_product_with_one_single_quote_in_product_name">
139+
<field name="name" xsi:type="string">\'Simple Product with msrp on gesture %isolation%</field>
140+
<field name="url_key" xsi:type="string">simple-product-with-msrp on gesture-%isolation%</field>
141+
<field name="sku" xsi:type="string">sku_simple_product_with_msrp_on_gesture_%isolation%</field>
142+
<field name="weight" xsi:type="string">1</field>
143+
<field name="product_has_weight" xsi:type="string">This item has weight</field>
144+
<field name="quantity_and_stock_status" xsi:type="array">
145+
<item name="qty" xsi:type="string">1000</item>
146+
<item name="is_in_stock" xsi:type="string">In Stock</item>
147+
</field>
148+
<field name="price" xsi:type="array">
149+
<item name="value" xsi:type="string">20</item>
150+
<item name="dataset" xsi:type="string">-</item>
151+
</field>
152+
<field name="category_ids" xsi:type="array">
153+
<item name="dataset" xsi:type="string">default_subcategory</item>
154+
</field>
155+
<field name="tax_class_id" xsi:type="array">
156+
<item name="dataset" xsi:type="string">taxable_goods</item>
157+
</field>
158+
<field name="website_ids" xsi:type="array">
159+
<item name="0" xsi:type="array">
160+
<item name="dataset" xsi:type="string">default</item>
161+
</item>
162+
</field>
163+
<field name="stock_data" xsi:type="array">
164+
<item name="manage_stock" xsi:type="string">No</item>
165+
</field>
166+
<field name="msrp" xsi:type="string">35</field>
167+
<field name="msrp_display_actual_price_type" xsi:type="string">On Gesture</field>
168+
</dataset>
137169
</repository>
138170
</config>

dev/tests/functional/tests/app/Magento/Msrp/Test/TestCase/ApplyMapTest.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,15 @@
3131
<constraint name="Magento\Msrp\Test\Constraint\AssertMsrpInShoppingCart" />
3232
</variation>
3333
<variation name="ApplyMapTestVariation4" summary="Apply MAP Setting on Gesture to Simple Product with Quotes in product name" ticketId="MAGETWO-69318">
34-
<data name="product" xsi:type="string">catalogProductSimple::msrp_on_gesture_for_product_with_quotes_in_product_name</data>
34+
<data name="product" xsi:type="string">catalogProductSimple::msrp_on_gesture_for_product_with_single_quotes_in_product_name</data>
35+
<constraint name="Magento\Msrp\Test\Constraint\AssertMsrpOnCategoryPage" />
36+
<constraint name="Magento\Msrp\Test\Constraint\AssertMapOnCategoryPage" />
37+
<constraint name="Magento\Msrp\Test\Constraint\AssertMsrpOnProductView" />
38+
<constraint name="Magento\Msrp\Test\Constraint\AssertMapOnProductView" />
39+
<constraint name="Magento\Msrp\Test\Constraint\AssertMsrpInShoppingCart" />
40+
</variation>
41+
<variation name="ApplyMapTestVariation5" summary="Apply MAP Setting on Gesture to Simple Product with Quotes in product name" ticketId="MAGETWO-69318">
42+
<data name="product" xsi:type="string">catalogProductSimple::msrp_on_gesture_for_product_with_one_single_quote_in_product_name</data>
3543
<constraint name="Magento\Msrp\Test\Constraint\AssertMsrpOnCategoryPage" />
3644
<constraint name="Magento\Msrp\Test\Constraint\AssertMapOnCategoryPage" />
3745
<constraint name="Magento\Msrp\Test\Constraint\AssertMsrpOnProductView" />

0 commit comments

Comments
 (0)