Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Assert3dSecureInfoIsPresent.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Mtf\Constraint\AbstractConstraint;
10 use Magento\Sales\Test\Page\Adminhtml\SalesOrderView;
11 
15 class Assert3dSecureInfoIsPresent extends AbstractConstraint
16 {
24  public function processAssert(SalesOrderView $salesOrderView, array $paymentInformation)
25  {
27  $infoTab = $salesOrderView->getOrderForm()->openTab('info')->getTab('info');
28  $actualPaymentInformation = $infoTab->getPaymentInfoBlock()->getData();
29  foreach ($paymentInformation as $key => $value) {
30  \PHPUnit\Framework\Assert::assertArrayHasKey(
31  $key,
32  $actualPaymentInformation,
33  '3D Secure information is not present.'
34  );
35  \PHPUnit\Framework\Assert::assertEquals(
36  $paymentInformation[$key],
37  $value,
38  '3D Secure information is not equal to information from data set.'
39  );
40  }
41  }
42 
48  public function toString()
49  {
50  return '3D Secure information is present and equals to information from data set.';
51  }
52 }
$value
Definition: gender.phtml:16