Skip to content

Commit 5c2b0da

Browse files
author
Michael Logvin
committed
MAGETWO-33053: MTF Configuration pull request
1 parent bb25f46 commit 5c2b0da

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerForm.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function processAssert(
7171
$pageCustomerIndex->open();
7272
$pageCustomerIndex->getCustomerGridBlock()->searchAndOpen($filter);
7373
$dataForm = $pageCustomerIndexEdit->getCustomerForm()->getDataCustomer($customer, $address);
74-
$dataDiff = $this->verify($data, $dataForm);
74+
$dataDiff = $this->verify($data, $dataForm);;
7575
\PHPUnit_Framework_Assert::assertTrue(
7676
empty($dataDiff),
7777
'Customer data on edit page(backend) not equals to passed from fixture.'
@@ -95,6 +95,10 @@ protected function verify(array $dataFixture, array $dataForm)
9595
if (in_array($name, $this->customerSkippedFields)) {
9696
continue;
9797
}
98+
if (!isset($dataForm['customer'][$name])) {
99+
$msg = print_r($dataFixture, true) . print_r($dataForm, true);;
100+
throw new \Exception('Testmsg ' . $msg . ' Testmsg');
101+
}
98102
$result[] = "\ncustomer {$name}: \"{$dataForm['customer'][$name]}\" instead of \"{$value}\"";
99103
}
100104
foreach ($dataFixture['addresses'] as $key => $address) {

0 commit comments

Comments
 (0)