public function testGetAttributeValuesByIds() { $originalAttributeValue = $this->setupAttributeValue(); $attributeValues = $this->attributeValueRepository->getAttributeValuesByIds([$originalAttributeValue->getId()]); $this->assertSame(1, count($attributeValues)); $this->assertEquals($originalAttributeValue->getId(), $attributeValues[0]->getId()); }
/** * @param int[] $attributeValueIds * @param Pagination $pagination * @return AttributeValue[] */ public function getAttributeValuesByIds($attributeValueIds, Pagination &$pagination = null) { return $this->attributeValueRepository->getAttributeValuesByIds($attributeValueIds, $pagination); }