Skip to content

Commit e34fc78

Browse files
committed
ready
1 parent 9847f03 commit e34fc78

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

app/code/Magento/Sales/Test/Mftf/Metadata/InvoiceMeta.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@
88

99
<operations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:DataGenerator/etc/dataOperation.xsd">
11-
<operation name="CreateInvoice" dataType="Invoice" type="create" auth="adminOauth" url="V1/order/29/invoices" method="POST">
11+
<operation name="CreateInvoice" dataType="Invoice" type="create" auth="adminOauth" url="V1/order/{return}/invoice" method="POST">
1212
<contentType>application/json</contentType>
13+
<object key="cartItem" dataType="CartItem">
14+
<field key="quote_id">string</field>
15+
<field key="sku" type="string">string</field>
16+
<field key="qty">integer</field>
17+
</object>
1318
</operation>
1419
</operations>

app/code/Magento/Sales/Test/Mftf/Test/AdminCreateInvoice.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@
3737
<requiredEntity createDataKey="createGuestCart"/>
3838
</updateData>
3939

40-
<createData entity="Invoice" stepKey="invoiceOrder"/>
41-
40+
<createData entity="Invoice" stepKey="invoiceOrder">
41+
<requiredEntity createDataKey="createGuestCart"/>
42+
</createData>
4243

4344
</before>
4445
<after>

0 commit comments

Comments
 (0)