Update User unit tests to use the new assertQueries() method.
Review Request #12350 — Created June 10, 2022 and submitted — Latest diff uploaded
Work is being done on
User-related query optimizations. To help ensure
the changes have an effect on queries, we're now using the new
Userunit tests that otherwise assert non-0
This lets us check the specifics of the queries, including details on
JOINs, annotations, fields that are queried, and more. Further
improvements to this functionality will be more easily verified through
unit test changes and in code reviews.
Unit tests pass.