Skip to content

Commit a9197ba

Browse files
committed
MTA-1316: Apply fixture changes to Magento
- Fixed default data set
1 parent 0bbedae commit a9197ba

File tree

34 files changed

+281
-1
lines changed

34 files changed

+281
-1
lines changed

dev/tests/functional/tests/app/Magento/Backend/Test/Fixture/GlobalSearch.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@
99
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/mtf/Mtf/Fixture/etc/fixture.xsd"
1010
class="Magento\Backend\Test\Fixture\GlobalSearch">
1111
<module>Magento_Backend</module>
12+
<dataset name="default">
13+
<field name="query" xsi:type="string">catalogProductSimple::default::name</field>
14+
</dataset>
1215
<fields>
1316
<field name="query">
1417
<attribute_code>query</attribute_code>
1518
<backend_type>virtual</backend_type>
1619
<source>Magento\Backend\Test\Fixture\GlobalSearch\Query</source>
17-
<default_value xsi:type="string">catalogProductSimple::default::name</default_value>
1820
</field>
1921
</fields>
2022
</fixture>

dev/tests/functional/tests/app/Magento/Bundle/Test/Fixture/BundleProduct.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
<identifier>sku</identifier>
1717
<repository_class>Magento\Bundle\Test\Repository\BundleProduct</repository_class>
1818
<handler_interface>Magento\Bundle\Test\Handler\BundleProduct\BundleProductInterface</handler_interface>
19+
<dataset name="default">
20+
<field name="name" xsi:type="string">BundleProduct %isolation%</field>
21+
<field name="sku_type" xsi:type="string">Dynamic</field>
22+
<field name="price_type" xsi:type="string">Dynamic</field>
23+
<field name="weight_type" xsi:type="string">Dynamic</field>
24+
</dataset>
1925
<data_config>
2026
<item name="type_id" xsi:type="string">bundle</item>
2127
<item name="create_url_params" xsi:type="array">

dev/tests/functional/tests/app/Magento/Catalog/Test/Fixture/CatalogAttributeSet.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
<collection>Magento\Catalog\Model\Resource\Product\Link\Product\Collection</collection>
1515
<repository_class>Magento\Catalog\Test\Repository\CatalogAttributeSet</repository_class>
1616
<handler_interface>Magento\Catalog\Test\Handler\CatalogAttributeSet\CatalogAttributeSetInterface</handler_interface>
17+
<dataset name="default">
18+
<field name="attribute_set_name" xsi:type="string">Default_attribute_set_%isolation%</field>
19+
<field name="skeleton_set" xsi:type="array">
20+
<item name="dataSet" xsi:type="string">default</item>
21+
</field>
22+
</dataset>
1723
<fields>
1824
<field name="attribute_set_id">
1925
<attribute_code>attribute_set_id</attribute_code>

dev/tests/functional/tests/app/Magento/Catalog/Test/Fixture/CatalogProductAttribute.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
<collection>Magento\Catalog\Model\Resource\Attribute</collection>
1818
<repository_class>Magento\Catalog\Test\Repository\CatalogProductAttribute</repository_class>
1919
<handler_interface>Magento\Catalog\Test\Handler\CatalogProductAttribute\CatalogProductAttributeInterface</handler_interface>
20+
<dataset name="default">
21+
<field name="frontend_label" xsi:type="string">attribute_label%isolation%</field>
22+
<field name="frontend_input" xsi:type="string">Text Field</field>
23+
<field name="is_required" xsi:type="string">No</field>
24+
</dataset>
2025
<fields>
2126
<field name="attribute_id">
2227
<attribute_code>attribute_id</attribute_code>

dev/tests/functional/tests/app/Magento/Catalog/Test/Fixture/CatalogProductSimple.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,24 @@
1616
<identifier>sku</identifier>
1717
<repository_class>Magento\Catalog\Test\Repository\CatalogProductSimple</repository_class>
1818
<handler_interface>Magento\Catalog\Test\Handler\CatalogProductSimple\CatalogProductSimpleInterface</handler_interface>
19+
<dataset name="default">
20+
<field name="name" xsi:type="string">Test simple product %isolation%</field>
21+
<field name="sku" xsi:type="string">test_simple_sku_%isolation%</field>
22+
<field name="attribute_set_id" xsi:type="array">
23+
<item name="dataSet" xsi:type="string">default</item>
24+
</field>
25+
<field name="price" xsi:type="array">
26+
<item name="value" xsi:type="string">100.00</item>
27+
</field>
28+
<field name="weight" xsi:type="string">12.00</field>
29+
<field name="quantity_and_stock_status" xsi:type="array">
30+
<item name="qty" xsi:type="string">10.00</item>
31+
<item name="is_in_stock" xsi:type="string">In Stock</item>
32+
</field>
33+
<field name="website_ids" xsi:type="array">
34+
<item name="0" xsi:type="string">Main Website</item>
35+
</field>
36+
</dataset>
1937
<data_config>
2038
<item name="type_id" xsi:type="string">simple</item>
2139
<item name="create_url_params" xsi:type="array">

dev/tests/functional/tests/app/Magento/Catalog/Test/Fixture/CatalogProductVirtual.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,18 @@
1616
<identifier>sku</identifier>
1717
<repository_class>Magento\Catalog\Test\Repository\CatalogProductVirtual</repository_class>
1818
<handler_interface>Magento\Catalog\Test\Handler\CatalogProductVirtual\CatalogProductVirtualInterface</handler_interface>
19+
<dataset name="default">
20+
<field name="name" xsi:type="string">Test virtual product %isolation%</field>
21+
<field name="sku" xsi:type="string">test_virtual_sku_%isolation%</field>
22+
<field name="price" xsi:type="array">
23+
<item name="value" xsi:type="string">100.00</item>
24+
</field>
25+
<field name="quantity_and_stock_status" xsi:type="array">
26+
<item name="qty" xsi:type="string">10.00</item>
27+
<item name="is_in_stock" xsi:type="string">In Stock</item>
28+
</field>
29+
<field name="is_virtual" xsi:type="string">Yes</field>
30+
</dataset>
1931
<data_config>
2032
<item name="type_id" xsi:type="string">virtual</item>
2133
<item name="create_url_params" xsi:type="array">

dev/tests/functional/tests/app/Magento/Catalog/Test/Fixture/Category.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@
1414
<collection>Magento\Catalog\Model\Resource\Category\Collection</collection>
1515
<repository_class>Magento\Catalog\Test\Repository\Category</repository_class>
1616
<handler_interface>Magento\Catalog\Test\Handler\Category\CategoryInterface</handler_interface>
17+
<dataset name="default">
18+
<field name="name" xsi:type="string">Category%isolation%</field>
19+
<field name="path" xsi:type="string">Default Category</field>
20+
<field name="url_key" xsi:type="string">category%isolation%</field>
21+
<field name="is_active" xsi:type="string">Yes</field>
22+
<field name="include_in_menu" xsi:type="string">Yes</field>
23+
<field name="parent_id" xsi:type="string">2</field>
24+
</dataset>
1725
<fields>
1826
<field name="entity_id">
1927
<attribute_code>entity_id</attribute_code>

dev/tests/functional/tests/app/Magento/CatalogRule/Test/Fixture/CatalogRule.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,19 @@
1414
<collection>Magento\CatalogRule\Model\Resource\Rule\Product\Price\Collection</collection>
1515
<repository_class>Magento\CatalogRule\Test\Repository\CatalogRule</repository_class>
1616
<handler_interface>Magento\CatalogRule\Test\Handler\CatalogRule\CatalogRuleInterface</handler_interface>
17+
<dataset name="default">
18+
<field name="name" xsi:type="string">CatalogPriceRule %isolation%</field>
19+
<field name="description" xsi:type="string">Catalog Price Rule Description</field>
20+
<field name="is_active" xsi:type="string">Active</field>
21+
<field name="website_ids" xsi:type="array">
22+
<item name="0" xsi:type="string">Main Website</item>
23+
</field>
24+
<field name="customer_group_ids" xsi:type="array">
25+
<item name="0" xsi:type="string">NOT LOGGED IN</item>
26+
</field>
27+
<field name="simple_action" xsi:type="string">By Percentage of the Original Price</field>
28+
<field name="discount_amount" xsi:type="string">50</field>
29+
</dataset>
1730
<fields>
1831
<field name="name">
1932
<attribute_code>name</attribute_code>

dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/Fixture/CheckoutAgreement.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@
1414
<collection>Magento\CheckoutAgreements\Model\Resource\Agreement\Collection</collection>
1515
<repository_class>Magento\CheckoutAgreements\Test\Repository\CheckoutAgreement</repository_class>
1616
<handler_interface>Magento\CheckoutAgreements\Test\Handler\CheckoutAgreement\CheckoutAgreementInterface</handler_interface>
17+
<dataset name="default">
18+
<field name="name" xsi:type="string">DefaultName%isolation%</field>
19+
<field name="is_active" xsi:type="string">Enabled</field>
20+
<field name="is_html" xsi:type="string">Text</field>
21+
<field name="stores" xsi:type="array">
22+
<item name="dataSet" xsi:type="string">default</item>
23+
</field>
24+
<field name="checkbox_text" xsi:type="string">test_checkbox%isolation%</field>
25+
<field name="content" xsi:type="string">TestMessage%isolation%</field>
26+
</dataset>
1727
<fields>
1828
<field name="agreement_id">
1929
<attribute_code>agreement_id</attribute_code>

dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Fixture/ConfigurableProductInjectable.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,28 @@
1616
<identifier>sku</identifier>
1717
<repository_class>Magento\ConfigurableProduct\Test\Repository\ConfigurableProductInjectable</repository_class>
1818
<handler_interface>Magento\ConfigurableProduct\Test\Handler\ConfigurableProductInjectable\ConfigurableProductInjectableInterface</handler_interface>
19+
<dataset name="default">
20+
<field name="name" xsi:type="string">Configurable Product %isolation%</field>
21+
<field name="sku" xsi:type="string">sku_configurable_product_%isolation%</field>
22+
<field name="type_id" xsi:type="string">configurable</field>
23+
<field name="url_key" xsi:type="string">configurable-product-%isolation%</field>
24+
<field name="attribute_set_id" xsi:type="array">
25+
<item name="dataSet" xsi:type="string">default</item>
26+
</field>
27+
<field name="website_ids" xsi:type="array">
28+
<item name="0" xsi:type="string">Main Website</item>
29+
</field>
30+
<field name="price" xsi:type="array">
31+
<item name="value" xsi:type="string">100.00</item>
32+
</field>
33+
<field name="weight" xsi:type="string">1</field>
34+
<field name="quantity_and_stock_status" xsi:type="array">
35+
<item name="is_in_stock" xsi:type="string">In Stock</item>
36+
</field>
37+
<field name="configurable_attributes_data" xsi:type="array">
38+
<item name="preset" xsi:type="string">default</item>
39+
</field>
40+
</dataset>
1941
<data_config>
2042
<item name="type_id" xsi:type="string">configurable</item>
2143
<item name="create_url_params" xsi:type="array">

0 commit comments

Comments
 (0)