Loading tests/src/Functional/ExampleContentTrait.php +2 −0 Original line number Diff line number Diff line Loading @@ -30,6 +30,7 @@ trait ExampleContentTrait { protected function insertExampleContent() { $count = \Drupal::entityQuery('entity_test_mulrev_changed') ->count() ->accessCheck() ->execute(); $entity_test_storage = \Drupal::entityTypeManager() Loading Loading @@ -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."); } Loading tests/src/FunctionalJavascript/JsBase.php +1 −0 Original line number Diff line number Diff line Loading @@ -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."); Loading Loading
tests/src/Functional/ExampleContentTrait.php +2 −0 Original line number Diff line number Diff line Loading @@ -30,6 +30,7 @@ trait ExampleContentTrait { protected function insertExampleContent() { $count = \Drupal::entityQuery('entity_test_mulrev_changed') ->count() ->accessCheck() ->execute(); $entity_test_storage = \Drupal::entityTypeManager() Loading Loading @@ -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."); } Loading
tests/src/FunctionalJavascript/JsBase.php +1 −0 Original line number Diff line number Diff line Loading @@ -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."); Loading