diff --git a/tests/src/Unit/Normalizer/JsonApiDocumentTopLevelNormalizerTest.php b/tests/src/Unit/Normalizer/JsonApiDocumentTopLevelNormalizerTest.php index b3a7f6a..20dcfde 100644 --- a/tests/src/Unit/Normalizer/JsonApiDocumentTopLevelNormalizerTest.php +++ b/tests/src/Unit/Normalizer/JsonApiDocumentTopLevelNormalizerTest.php @@ -8,12 +8,12 @@ use Drupal\Core\Entity\EntityTypeInterface; use Drupal\Core\Entity\EntityTypeManagerInterface; use Drupal\Core\Entity\FieldableEntityInterface; use Drupal\jsonapi\Context\FieldResolver; -use Drupal\jsonapi\Exception\EntityAccessDeniedHttpException; use Drupal\jsonapi\ResourceType\ResourceType; use Drupal\jsonapi\Normalizer\JsonApiDocumentTopLevelNormalizer; use Drupal\jsonapi\LinkManager\LinkManager; use Drupal\Tests\UnitTestCase; use Prophecy\Argument; +use Symfony\Component\HttpKernel\Exception\UnprocessableEntityHttpException; use Symfony\Component\Serializer\SerializerInterface; use Symfony\Component\Serializer\Normalizer\DenormalizerInterface; use Drupal\jsonapi\ResourceType\ResourceTypeRepository; @@ -220,7 +220,7 @@ class JsonApiDocumentTopLevelNormalizerTest extends UnitTestCase { if ($expect_exception) { $this->setExpectedException( - EntityAccessDeniedHttpException::class, + UnprocessableEntityHttpException::class, 'IDs should be properly generated and formatted UUIDs as described in RFC 4122.' ); }