Skip to content

Commit 9edd49e

Browse files
author
Robert He
committed
MAGETWO-32410: Grouped Product Integration API
- fixes from code review
1 parent 89f85d4 commit 9edd49e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

app/code/Magento/GroupedProduct/Test/Unit/Model/ProductTest.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,15 @@ public function testGetProductLinks()
415415
$productLink2->setExtensionAttributes($extension);
416416

417417
$links = $this->model->getProductLinks();
418-
$this->assertEquals($links, $expectedOutput);
418+
// Match the links
419+
$matches = 0;
420+
foreach ($links as $link) {
421+
foreach ($expectedOutput as $expected) {
422+
if ($expected->getData() == $link->getData()) {
423+
$matches++;
424+
}
425+
}
426+
}
427+
$this->assertEquals($matches, 2);
419428
}
420429
}

0 commit comments

Comments
 (0)