diff --git a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertCaptureInCommentsHistory.php b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertCaptureInCommentsHistory.php index 246f440eb04f93b2fde14ce58d6b07e9a48a0da2..cfaf95bbdeb1a285fc1dafd180d3cac863a6c909 100644 --- a/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertCaptureInCommentsHistory.php +++ b/dev/tests/functional/tests/app/Magento/Sales/Test/Constraint/AssertCaptureInCommentsHistory.php @@ -47,6 +47,7 @@ class AssertCaptureInCommentsHistory extends AbstractConstraint unset($comments[$key]); } } + $comments = array_values($comments); foreach ($capturedPrices as $key => $capturedPrice) { \PHPUnit_Framework_Assert::assertRegExp(