Skip to content

Commit 6db2b2a

Browse files
committed
MTA-4096: Ignore functional test failures caused by Magento issues
- fixed regexp pattern
1 parent 5f29c29 commit 6db2b2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
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*\W{1,2}%s online. Transaction ID: "[\w\-]*"/';
22+
const CAPTURED_AMOUNT_PATTERN = '/^Captured amount of [\W]{1,2}%s online\. Transaction ID: "[\w\-]*"/';
2323

2424
/**
2525
* Assert that comment about captured amount exists in Comments History section on order page in Admin.
@@ -53,7 +53,7 @@ public function processAssert(
5353

5454
foreach ($capturedPrices as $key => $capturedPrice) {
5555
\PHPUnit_Framework_Assert::assertRegExp(
56-
sprintf(self::CAPTURED_AMOUNT_PATTERN, $capturedPrice),
56+
sprintf(self::CAPTURED_AMOUNT_PATTERN, preg_quote(number_format($capturedPrice, 2, '.', ''))),
5757
$comments[$key]['comment'],
5858
'Incorrect captured amount value for the order #' . $orderId
5959
);

0 commit comments

Comments
 (0)