public function testFindOneByIdThrowsException() { $this->setExpectedException(EntityNotFoundException::class, 'AttributeValue not found'); $this->attributeValueRepository->findOneById($this->dummyData->getId()); }
/** * @param UuidInterface $id * @return AttributeValue * @throws EntityNotFoundException */ public function findOneById(UuidInterface $id) { return $this->attributeValueRepository->findOneById($id); }