public function testGetOptionValueById()
 {
     $option = $this->dummyData->getOption();
     $optionValue1 = $this->dummyData->getOptionValue($option);
     $this->entityManager->persist($option);
     $this->entityManager->persist($optionValue1);
     $this->entityManager->flush();
     $this->entityManager->clear();
     $optionValue = $this->optionRepository->getOptionValueById($optionValue1->getId());
     $this->assertEntitiesEqual($optionValue1, $optionValue);
 }
예제 #2
0
 /**
  * @param UuidInterface $optionValueId
  * @return OptionValue
  */
 public function getOptionValueById(UuidInterface $optionValueId)
 {
     return $this->optionRepository->getOptionValueById($optionValueId);
 }