We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89f85d4 commit 9edd49eCopy full SHA for 9edd49e
app/code/Magento/GroupedProduct/Test/Unit/Model/ProductTest.php
@@ -415,6 +415,15 @@ public function testGetProductLinks()
415
$productLink2->setExtensionAttributes($extension);
416
417
$links = $this->model->getProductLinks();
418
- $this->assertEquals($links, $expectedOutput);
+ // 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);
428
}
429
0 commit comments