- Issue created by @caspervoogt
- Status changed to Closed: works as designed
12 months ago 7:48pm 9 January 2024 - π¬π§United Kingdom longwave UK
$query in this case is not an entity query but a Prophecy stub which is being used to satisfy a caller in a test. https://github.com/phpspec/prophecy?tab=readme-ov-file#stubs
What this line is doing is saying that calling accessCheck on the query object will return the same query object; for the purposes of the test we don't care what accessCheck does or what the arguments should be.