/** * Assert that 3D Secure information is present on order page in Admin. * * @param SalesOrderView $salesOrderView * @param array $paymentInformation * @return void */ public function processAssert(SalesOrderView $salesOrderView, array $paymentInformation) { $actualPaymentInformation = $salesOrderView->getBraintreeInfoBlock()->getPaymentInfo(); foreach ($paymentInformation as $key => $value) { \PHPUnit_Framework_Assert::assertArrayHasKey($key, $actualPaymentInformation, '3D Secure information is not present.'); \PHPUnit_Framework_Assert::assertEquals($paymentInformation[$key], $value, '3D Secure information is not equal to information from data set.'); } }