Skip to content

Commit 33dbe0b

Browse files
committed
MTA-3516: Add to Dataset case: Simple product with tier price for not
logged in customers
2 parents 2a18d5a + 35cadd5 commit 33dbe0b

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

dev/tests/functional/tests/app/Magento/Catalog/Test/Repository/Product/TierPrice.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,16 @@
6666
</item>
6767
</field>
6868
</dataset>
69+
70+
<dataset name="not_logged_in">
71+
<field name="0" xsi:type="array">
72+
<item name="price" xsi:type="string">90</item>
73+
<item name="website" xsi:type="string">All Websites [USD]</item>
74+
<item name="price_qty" xsi:type="string">2</item>
75+
<item name="customer_group" xsi:type="array">
76+
<item name="dataset" xsi:type="string">NOT_LOGGED_IN</item>
77+
</item>
78+
</field>
79+
</dataset>
6980
</repository>
7081
</config>

dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/CreateSimpleProductEntityTest.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,5 +461,16 @@
461461
<data name="product/data/country_of_manufacture" xsi:type="string">Antarctica</data>
462462
<constraint name="Magento\Catalog\Test\Constraint\AssertProductSaveMessage" />
463463
</variation>
464+
<variation name="CreateSimpleProductEntityTestVariation28" summary="Create product with tier price for not logged in customer">
465+
<data name="product/data/url_key" xsi:type="string">simple-product-%isolation%</data>
466+
<data name="product/data/name" xsi:type="string">Simple Product %isolation%</data>
467+
<data name="product/data/sku" xsi:type="string">simple_sku_%isolation%</data>
468+
<data name="product/data/price/value" xsi:type="string">100</data>
469+
<data name="product/data/weight" xsi:type="string">50</data>
470+
<data name="product/data/quantity_and_stock_status/qty" xsi:type="string">667</data>
471+
<data name="product/data/tier_price/dataset" xsi:type="string">not_logged_in</data>
472+
<constraint name="Magento\Catalog\Test\Constraint\AssertProductSaveMessage" />
473+
<constraint name="Magento\Catalog\Test\Constraint\AssertProductTierPriceOnProductPage" />
474+
</variation>
464475
</testCase>
465476
</config>

0 commit comments

Comments
 (0)