public function testGetAttributeValuesByIds()
 {
     $originalAttributeValue = $this->setupAttributeValue();
     $attributeValues = $this->attributeValueRepository->getAttributeValuesByIds([$originalAttributeValue->getId()]);
     $this->assertSame(1, count($attributeValues));
     $this->assertEquals($originalAttributeValue->getId(), $attributeValues[0]->getId());
 }
 public function testGetAttributeValuesByIds()
 {
     $attributeValue1 = $this->dummyData->getAttributeValue();
     $this->attributeValueRepository->shouldReceive('getAttributeValuesByIds')->with([$attributeValue1->getId()], null)->andReturn([$attributeValue1])->once();
     $attributeValues = $this->attributeValueService->getAttributeValuesByIds([$attributeValue1->getId()]);
     $this->assertEntitiesEqual($attributeValue1, $attributeValues[0]);
 }
 /**
  * @param int[] $attributeValueIds
  * @param Pagination $pagination
  * @return AttributeValue[]
  */
 public function getAttributeValuesByIds($attributeValueIds, Pagination &$pagination = null)
 {
     return $this->attributeValueRepository->getAttributeValuesByIds($attributeValueIds, $pagination);
 }