diff --git a/src/Behat/Cores/Drupal8.php b/src/Behat/Cores/Drupal8.php index 3e3c493..a4841fc 100644 --- a/src/Behat/Cores/Drupal8.php +++ b/src/Behat/Cores/Drupal8.php @@ -225,6 +225,7 @@ public function getLastEntityId($entity_type, $bundle = NULL) { $query->sort($id_key, 'DESC'); $query->range(0, 1); $query->addMetaData('account', \Drupal::entityTypeManager()->getStorage('user')->load(1)); + $query->accessCheck(FALSE); $results = $query->execute(); if (!empty($results)) {