Skip to content

Commit a92a54a

Browse files
author
Michael Logvin
committed
MAGETWO-37614: Stabilize story
1 parent 46aba35 commit a92a54a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

dev/tests/integration/testsuite/Magento/Customer/Block/Adminhtml/Edit/Tab/View/PersonalInfoTest.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,15 @@ public function tearDown()
9595
*/
9696
public function testGetCustomer()
9797
{
98-
$this->assertEquals($this->_loadCustomer(), $this->_block->getCustomer());
98+
$expectedCustomer = $this->_loadCustomer();
99+
$actualCustomer = $this->_block->getCustomer();
100+
$this->assertEquals(count($expectedCustomer->__toArray()), count($actualCustomer->__toArray()));
101+
foreach ($expectedCustomer->__toArray() as $property => $value) {
102+
$expectedValue = is_numeric($value) ? intval($value) : $value;
103+
$actualValue = $actualCustomer->__toArray()[$property];
104+
$actualValue = is_numeric($actualValue) ? intval($actualValue) : $actualValue;
105+
$this->assertEquals($expectedValue, $actualValue);
106+
}
99107
}
100108

101109
public function testGetCustomerEmpty()

0 commit comments

Comments
 (0)