Commit 1497a1d9 authored by Balint Pekker's avatar Balint Pekker
Browse files

Issue #3305120: Added accessCheck() to entity queries in tests

parent 3526bce8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ trait ExampleContentTrait {
  protected function insertExampleContent() {
    $count = \Drupal::entityQuery('entity_test_mulrev_changed')
      ->count()
      ->accessCheck()
      ->execute();

    $entity_test_storage = \Drupal::entityTypeManager()
@@ -74,6 +75,7 @@ trait ExampleContentTrait {
    $this->entities[5]->save();
    $count = \Drupal::entityQuery('entity_test_mulrev_changed')
      ->count()
      ->accessCheck()
      ->execute() - $count;
    $this->assertEquals($count, 5, "$count items inserted.");
  }
+1 −0
Original line number Diff line number Diff line
@@ -95,6 +95,7 @@ abstract class JsBase extends WebDriverTestBase {

    $inserted_entities = \Drupal::entityQuery('entity_test_mulrev_changed')
      ->count()
      ->accessCheck()
      ->execute();
    $this->assertEquals(5, $inserted_entities, "5 items inserted.");