Skip to content

Commit 7939061

Browse files
dthampypdohogne-magento
authored andcommitted
MAGETWO-67496: Apply minimum advertised price to product on a product level when Display Actual Price On Gesture
- Added variation to cover the bug
1 parent 1ca44a0 commit 7939061

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

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

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,5 +102,37 @@
102102
<field name="msrp" xsi:type="string">15</field>
103103
<field name="msrp_display_actual_price_type" xsi:type="string">In Cart</field>
104104
</dataset>
105+
106+
<dataset name="msrp_on_gesture_for_product_with_quotes_in_product_name">
107+
<field name="name" xsi:type="string">\'Simple Product with\' msrp on gesture %isolation%</field>
108+
<field name="url_key" xsi:type="string">simple-product-with-msrp on gesture-%isolation%</field>
109+
<field name="sku" xsi:type="string">sku_simple_product_with_msrp_on_gesture_%isolation%</field>
110+
<field name="weight" xsi:type="string">1</field>
111+
<field name="product_has_weight" xsi:type="string">This item has weight</field>
112+
<field name="quantity_and_stock_status" xsi:type="array">
113+
<item name="qty" xsi:type="string">1000</item>
114+
<item name="is_in_stock" xsi:type="string">In Stock</item>
115+
</field>
116+
<field name="price" xsi:type="array">
117+
<item name="value" xsi:type="string">20</item>
118+
<item name="dataset" xsi:type="string">-</item>
119+
</field>
120+
<field name="category_ids" xsi:type="array">
121+
<item name="dataset" xsi:type="string">default_subcategory</item>
122+
</field>
123+
<field name="tax_class_id" xsi:type="array">
124+
<item name="dataset" xsi:type="string">taxable_goods</item>
125+
</field>
126+
<field name="website_ids" xsi:type="array">
127+
<item name="0" xsi:type="array">
128+
<item name="dataset" xsi:type="string">default</item>
129+
</item>
130+
</field>
131+
<field name="stock_data" xsi:type="array">
132+
<item name="manage_stock" xsi:type="string">No</item>
133+
</field>
134+
<field name="msrp" xsi:type="string">35</field>
135+
<field name="msrp_display_actual_price_type" xsi:type="string">On Gesture</field>
136+
</dataset>
105137
</repository>
106138
</config>

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,13 @@
3030
<constraint name="Magento\Msrp\Test\Constraint\AssertMsrpOnProductView" />
3131
<constraint name="Magento\Msrp\Test\Constraint\AssertMsrpInShoppingCart" />
3232
</variation>
33+
<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>
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>
3341
</testCase>
3442
</config>

0 commit comments

Comments
 (0)