9 use Magento\Mtf\Constraint\AbstractConstraint;
10 use Magento\Sales\Test\Page\Adminhtml\SalesOrderView;
24 public function processAssert(SalesOrderView $salesOrderView, array $paymentInformation)
27 $infoTab = $salesOrderView->getOrderForm()->openTab(
'info')->getTab(
'info');
28 $actualPaymentInformation = $infoTab->getPaymentInfoBlock()->getData();
29 foreach ($paymentInformation as $key =>
$value) {
30 \PHPUnit\Framework\Assert::assertArrayHasKey(
32 $actualPaymentInformation,
33 '3D Secure information is not present.' 35 \PHPUnit\Framework\Assert::assertEquals(
36 $paymentInformation[$key],
38 '3D Secure information is not equal to information from data set.' 50 return '3D Secure information is present and equals to information from data set.';