Skip to content

Commit ba768e4

Browse files
author
Stas Puga
committed
Merge remote-tracking branch 'origin/MAGETWO-96250' into 2.3-develop-mftf-pr9
2 parents 9d7b7e2 + 2a283fb commit ba768e4

File tree

2 files changed

+36
-14
lines changed

2 files changed

+36
-14
lines changed

app/code/Magento/GiftMessage/Test/Mftf/Data/GiftOptionsData.xml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,21 @@
77
-->
88

99
<entities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10-
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
11-
<entity name="allowGiftReceipt" type="allow_gift_receipt">
12-
<data key="value">0</data>
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:DataGenerator/etc/dataProfileSchema.xsd">
11+
<entity name="EnableGiftMessageForOrder" type="gift_message_config_state">
12+
<requiredEntity type="allow_order">AllowGiftMessageForOrder</requiredEntity>
1313
</entity>
14-
<entity name="allowPrintedCard" type="allow_printed_card">
15-
<data key="value">0</data>
14+
<entity name="AllowGiftMessageForOrder" type="allow_order">
15+
<data key="value">1</data>
1616
</entity>
17-
18-
<entity name="DefaultConfigGiftOptions" type="gift_options_config_state">
19-
<requiredEntity type="wrapping_allow_order">defaultWrappingAllowOrder</requiredEntity>
20-
<requiredEntity type="allow_gift_receipt">defaultAllowGiftReceipt</requiredEntity>
21-
<requiredEntity type="allow_printed_card">defaultAllowPrintedCard</requiredEntity>
17+
<entity name="DefaultConfigGiftMessageOptions" type="gift_message_config_state">
18+
<requiredEntity type="allow_order">OrderDefault</requiredEntity>
19+
<requiredEntity type="allow_items">ItemsDefault</requiredEntity>
2220
</entity>
23-
<entity name="defaultAllowGiftReceipt" type="allow_gift_receipt">
24-
<data key="value">1</data>
21+
<entity name="OrderDefault" type="allow_order">
22+
<data key="value">0</data>
2523
</entity>
26-
<entity name="defaultAllowPrintedCard" type="allow_printed_card">
27-
<data key="value">1</data>
24+
<entity name="ItemsDefault" type="allow_items">
25+
<data key="value">0</data>
2826
</entity>
2927
</entities>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<operations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:DataGenerator/etc/dataOperation.xsd">
10+
<operation name="SalesGiftMessageConfigState" dataType="gift_message_config_state" type="create" auth="adminFormKey" url="/admin/system_config/save/section/sales/" method="POST" successRegex="/messages-message-success/">
11+
<object key="groups" dataType="gift_message_config_state">
12+
<object key="gift_options" dataType="gift_message_config_state">
13+
<object key="fields" dataType="gift_message_config_state">
14+
<object key="allow_order" dataType="allow_order">
15+
<field key="value">string</field>
16+
</object>
17+
<object key="allow_items" dataType="allow_items">
18+
<field key="value">string</field>
19+
</object>
20+
</object>
21+
</object>
22+
</object>
23+
</operation>
24+
</operations>

0 commit comments

Comments
 (0)