- Issue created by @acbramley
- πΊπΈUnited States nicxvan
Should be pretty straight forward to add a test like in the issue that brought you here.
I don't see an obvious reason not to do this.
When working on https://git.drupalcode.org/project/drupal/-/merge_requests/855 I couldn't get NodeAccessGrantsCacheContextTest::testCacheContext
to pass.
The reason is, we call $this->moduleHandler()->hasImplementations('node_grants')
hasImplementations
calls getHookListeners
which reads from the invokeMap cache if it's set. However, there's no way to force reset this cache in a kernel test. When debugging the above test, I noticed node_access_test
was still in the invokeMap for node_grants
even after it was uninstalled.
See above test
$this->invokeMap = [];
in resetImplementations
Agree
Review
Commit
None
None
None
None
N/A
Active
11.0 π₯
base system
Should be pretty straight forward to add a test like in the issue that brought you here.
I don't see an obvious reason not to do this.