Skip to content

Commit 7f2a135

Browse files
committed
MTA-4121: [FT] Magento\Sales\Test\TestCase\CreateOnlineInvoiceEntityTest
2 parents 289a536 + 504f49d commit 7f2a135

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertAuthorizationInCommentsHistory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class AssertAuthorizationInCommentsHistory extends AbstractConstraint
1818
/**
1919
* Pattern of message about authorized amount in order.
2020
*/
21-
const AUTHORIZED_AMOUNT_PATTERN = '/(IPN "Pending" )*Authorized amount of \w*\W{1,2}%s. Transaction ID: "[\w\-]*"/';
21+
const AUTHORIZED_AMOUNT_PATTERN = '/(IPN "Pending" )*Authorized amount of .+?%s. Transaction ID: "[\w\-]*"/';
2222

2323
/**
2424
* Assert that comment about authorized amount exists in Comments History section on order page in Admin.

dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertCaptureInCommentsHistory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class AssertCaptureInCommentsHistory extends AbstractConstraint
1919
/**
2020
* Pattern of message about captured amount in order.
2121
*/
22-
const CAPTURED_AMOUNT_PATTERN = '/^Captured amount of [\W]{1,2}%s online\. Transaction ID: "[\w\-]*"/';
22+
const CAPTURED_AMOUNT_PATTERN = '/^Captured amount of .+?%s online\. Transaction ID: "[\w\-]*"/';
2323

2424
/**
2525
* Assert that comment about captured amount exists in Comments History section on order page in Admin.

dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertRefundInCommentsHistory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class AssertRefundInCommentsHistory extends AbstractConstraint
1919
/**
2020
* Pattern of message about refunded amount in order.
2121
*/
22-
const REFUNDED_AMOUNT_PATTERN = '/^We refunded \w*\W{1,2}%s online. Transaction ID: "[\w\-]*"/';
22+
const REFUNDED_AMOUNT_PATTERN = '/^We refunded .+?%s online. Transaction ID: "[\w\-]*"/';
2323

2424
/**
2525
* Assert that comment about refunded amount exists in Comments History section on order page in Admin.

dev/tests/functional/tests/app/Magento/Sales/Test/Repository/OrderInjectable/Invoice.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,6 @@
6262
<item name="comment_text" xsi:type="string">Partial Invoice with changed qty = 0</item>
6363
</item>
6464
</field>
65-
<field name="1" xsi:type="array">
66-
<item name="form_data" xsi:type="array">
67-
<item name="do_shipment" xsi:type="string">No</item>
68-
<item name="comment_text" xsi:type="string">Partial Invoice to the rest of order items</item>
69-
</item>
70-
</field>
7165
</dataset>
7266
</repository>
7367
</config>

0 commit comments

Comments
 (0)