Issue #3151990 by daffie, Hardik_Patel_12: Replace the database queries with an entity queries in NodeRevisionPermissionsTest