diff --git a/src/Behat/Cores/Drupal8.php b/src/Behat/Cores/Drupal8.php index a4841fc..5afbdfe 100644 --- a/src/Behat/Cores/Drupal8.php +++ b/src/Behat/Cores/Drupal8.php @@ -187,6 +187,7 @@ public function loadLatestEntity(string $entity_type) { public function loadLatestEntityByProperties(string $entity_type, array $properties = []) { $storage = \Drupal::entityTypeManager()->getStorage($entity_type); $query = $storage->getQuery(); + $query->accessCheck(FALSE); foreach ($properties as $property => $value) { $query->condition($property, $value);