コード例 #1
0
 /**
  * {@inheritdoc}
  */
 public function getUsedProductCollection($product = null)
 {
     $collection = parent::getUsedProductCollection($product);
     if (!is_null($this->getStoreFilter($product))) {
         $collection->setStoreId($this->getStoreFilter($product));
     }
     return $collection;
 }
コード例 #2
0
ファイル: ConfigurableTest.php プロジェクト: nja78/magento2
 public function testGetUsedProductCollection()
 {
     $this->assertInstanceOf('Magento\\ConfigurableProduct\\Model\\Resource\\Product\\Type\\Configurable\\Product\\Collection', $this->_model->getUsedProductCollection($this->_product));
 }