Skip to content

Commit 2db32a7

Browse files
committed
MAGETWO-64175: [GitHub] [PR] Add Catalog Attributes support for Wishlist Item Collection #8416
1 parent 26b64ac commit 2db32a7

File tree

1 file changed

+11
-3
lines changed
  • dev/tests/integration/testsuite/Magento/Wishlist/Model/ResourceModel/Item

1 file changed

+11
-3
lines changed

dev/tests/integration/testsuite/Magento/Wishlist/Model/ResourceModel/Item/CollectionTest.php

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<?php
2-
2+
/**
3+
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
36

47
namespace Magento\Wishlist\Model\ResourceModel\Item;
58

6-
79
use Magento\Catalog\Model\Product;
810
use Magento\Framework\App\ObjectManager;
911
use Magento\Wishlist\Model\Wishlist;
@@ -15,14 +17,17 @@ class CollectionTest extends \PHPUnit_Framework_TestCase
1517
* @var ObjectManager
1618
*/
1719
private $objectManager;
20+
1821
/**
1922
* @var Collection
2023
*/
2124
private $itemCollection;
25+
2226
/**
2327
* @var Wishlist
2428
*/
2529
private $wishlist;
30+
2631
/**
2732
* @var Config\Data
2833
*/
@@ -35,7 +40,10 @@ protected function setUp()
3540
$this->itemCollection = $this->objectManager->get(Collection::class);
3641
$this->attributeConfig = $this->objectManager->get(Config\Data::class);
3742
}
43+
3844
/**
45+
* Verify that Wishlist Item Collection uses Catalog Attributes defined in the configuration.
46+
*
3947
* @magentoDataFixture Magento/Wishlist/_files/wishlist_shared.php
4048
* @magentoAppIsolation enabled
4149
* @magentoDbIsolation enabled
@@ -55,7 +63,7 @@ public function testLoadedProductAttributes()
5563
}
5664

5765
/**
58-
* @param $attributes
66+
* @param array $attributes
5967
*/
6068
private function addAttributesToWishlistConfig($attributes)
6169
{

0 commit comments

Comments
 (0)