Exemple #1
0
 /**
  * Get collection of values by given option ids
  *
  * @param array $optionIds
  * @param int $storeId
  * @return Collection
  */
 public function getOptionValuesByOptionId($optionIds, $storeId)
 {
     $collection = $this->productOptionValue->getValuesByOption($optionIds, $this->getId(), $storeId);
     return $collection;
 }
Exemple #2
0
 public function testGetValuesByOption()
 {
     $this->assertInstanceOf('\\Magento\\Catalog\\Model\\Resource\\Product\\Option\\Value\\Collection', $this->model->getValuesByOption([1], 1, 1));
 }