diff --git a/core/modules/hal/lib/Drupal/hal/Tests/NormalizerTestBase.php b/core/modules/hal/lib/Drupal/hal/Tests/NormalizerTestBase.php index 414a284..10f2aca 100644 --- a/core/modules/hal/lib/Drupal/hal/Tests/NormalizerTestBase.php +++ b/core/modules/hal/lib/Drupal/hal/Tests/NormalizerTestBase.php @@ -129,6 +129,8 @@ function setUp() { foreach ($normalizers as $normalizer) { $normalizer->setLinkManager($link_manager); } + $entity_normalizer = reset($normalizers); + $entity_normalizer->setEntityManager(\Drupal::entityManager()); $encoders = array( new JsonEncoder(), );