Skip to content

Commit 808f0e0

Browse files
MTO-104: [Test] Export Customer Addresses
- Tests fixed.
1 parent 5374e81 commit 808f0e0

File tree

1 file changed

+3
-3
lines changed
  • dev/tests/functional/tests/app/Magento/Customer/Test/Block/Adminhtml/Edit/Tab

1 file changed

+3
-3
lines changed

dev/tests/functional/tests/app/Magento/Customer/Test/Block/Adminhtml/Edit/Tab/Addresses.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,14 @@ public function getDataAddresses($address = null)
167167
$addresses = is_array($address) ? $address : [1 => $address];
168168

169169
foreach ($addresses as $addressNumber => $address) {
170-
$isHasData = (null !== $address) && $address->hasData();
170+
$hasData = (null !== $address) && $address->hasData();
171171
$isVisibleCustomerAddress = $this->isVisibleCustomerAddress($addressNumber);
172172

173-
if ($isHasData && !$isVisibleCustomerAddress) {
173+
if ($hasData && !$isVisibleCustomerAddress) {
174174
throw new \Exception("Invalid argument: can't get data from customer address #{$addressNumber}");
175175
}
176176

177-
if (!$isHasData && !$isVisibleCustomerAddress) {
177+
if (!$hasData && !$isVisibleCustomerAddress) {
178178
$data[$addressNumber] = [];
179179
} else {
180180
$this->openCustomerAddress($addressNumber);

0 commit comments

Comments
 (0)