Closed (fixed)
Project:
Scheduler
Version:
2.x-dev
Component:
Testing
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
6 Oct 2022 at 11:56 UTC
Updated:
20 Oct 2022 at 16:34 UTC
Jump to comment: Most recent
When running in Drupal 10, some tests produce
Drupal\Core\Entity\Query\QueryException:
Entity queries must explicitly set whether the query should be access checked or not.
See Drupal\Core\Entity\Query\QueryInterface::accessCheck().
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
jonathan1055 commentedNeeds Review to allow testing.
Thanks to @chandu7929 for the initial change.
Comment #5
vishalkhode commentedHi jonathan1055
Reviewed and changes looks good to me. We can move it ahead.
Comment #6
rajeshreeputraworks fine, RTBC
Comment #7
vishalkhode commentedHi chandu7929:
I think following also needs to be updated: https://git.drupalcode.org/project/scheduler/-/merge_requests/65/diffs#a...
I'll run test and update (if more). Thanks
Comment #8
jonathan1055 commentedThat test was only at 9.4. Needs to be run at D10. Let me finish #3312069: ModuleHandlerInterface::getImplementations() is deprecated in 9.4 first, as trying to run anything at D10 fails every test and will obscure the other problems.
Comment #9
chandu7929 commentedComment #10
jonathan1055 commentedThanks @vishalkhode, yes I knew that. The tests stop at the first problem, so chandu7929 only fixed the first two. I wanted to see the initial problem pass, before fixing those subsequent ones. But if you want to add it now, that's OK.
Comment #11
chandu7929 commentedComment #12
jonathan1055 commentedNo downside to committing this on 2.x even though the tests at D10 fail for other reasons. We saw previously that this fixes the deprecation message.
Thanks vishalkhode and chandu7929, will give you credit on the commit.
Comment #14
jonathan1055 commentedDone