Issue #2785449 by jonathanshaw, longwave, andypost, catch, timmillwood,...
Issue #2785449 by jonathanshaw, longwave, andypost, catch, timmillwood, larowlan: It's too easy to write entity queries with access checks that must not have them
@trigger_error('Relying on entity queries to check access by default is deprecated in drupal:9.2.0 and an error will be thrown from drupal:10.0.0. Call \Drupal\Core\Entity\Query\QueryInterface::accessCheck() with TRUE or FALSE to specify whether access should be checked. See https://www.drupal.org/node/3201242',E_USER_DEPRECATED);
$this->expectDeprecation('Relying on entity queries to check access by default is deprecated in drupal:9.2.0 and an error will be thrown from drupal:10.0.0. Call \Drupal\Core\Entity\Query\QueryInterface::accessCheck() with TRUE or FALSE to specify whether access should be checked. See https://www.drupal.org/node/3201242');