Skip to content

Commit

Permalink
ready
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaAPak committed Dec 1, 2020
1 parent 9847f03 commit e34fc78
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 6 additions & 1 deletion app/code/Magento/Sales/Test/Mftf/Metadata/InvoiceMeta.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@

<operations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:DataGenerator/etc/dataOperation.xsd">
<operation name="CreateInvoice" dataType="Invoice" type="create" auth="adminOauth" url="V1/order/29/invoices" method="POST">
<operation name="CreateInvoice" dataType="Invoice" type="create" auth="adminOauth" url="V1/order/{return}/invoice" method="POST">
<contentType>application/json</contentType>
<object key="cartItem" dataType="CartItem">
<field key="quote_id">string</field>
<field key="sku" type="string">string</field>
<field key="qty">integer</field>
</object>
</operation>
</operations>
5 changes: 3 additions & 2 deletions app/code/Magento/Sales/Test/Mftf/Test/AdminCreateInvoice.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@
<requiredEntity createDataKey="createGuestCart"/>
</updateData>

<createData entity="Invoice" stepKey="invoiceOrder"/>

<createData entity="Invoice" stepKey="invoiceOrder">
<requiredEntity createDataKey="createGuestCart"/>
</createData>

</before>
<after>
Expand Down

0 comments on commit e34fc78

Please sign in to comment.