[META] Top Drupal 10 to 11 deprecations to cover
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3400058. -->
Reported by: [gábor hojtsy](https://www.drupal.org/user/4166)
>>>
<p>@bbrala refactored project_analysis so it can run on Drupal 10 to 11 too. Here are the raw deprecated API results of the first run. The top found issues are as follows. There are most likely missing coverage in phpstan-drupal and/or upgrade status for all deprecations, those will potentially surface new top issues. Also some of these may already have drupal-rector issues.</p>
<ul>
<li><del><code>Call to deprecated function watchdog_exception(). Deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use Use Drupal\Core\Utility\Error::logException() instead.</code> 824 times</del></li>
<li><del><code>Relying on entity queries to check access by default is deprecated in drupal:9.2.0 and an error will be thrown from drupal:10.0.0. Call \Drupal\Core\Entity\Query\QueryInterface::accessCheck() with TRUE or FALSE to specify whether access should be checked.</code></del> 711 times</li>
<li><code>Call to deprecated method loadRevision() of class Drupal\Core\Entity\EntityStorageInterface. Deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use Drupal\Core\Entity\RevisionableStorageInterface::loadRevision instead.</code> 404 times</li>
<li><del><br>
<pre>Missing call to parent::setUp() method.<code></del> 296 times</li><br> <li>Call to deprecated method setMethods() of class PHPUnit\Framework\MockObject\MockBuilder: https://github.com/sebastianbergmann/phpunit/pull/3687</pre><p> 162 times</p></del></li>
<li><code>Call to deprecated method at() of class PHPUnit\Framework\TestCase: https://github.com/sebastianbergmann/phpunit/issues/4297</code> 151 times</li>
<li><del><code>Drupal\Tests\BrowserTestBase::$defaultTheme is required in drupal:9.0.0 when using an install profile that does not set a default theme. See https://www.drupal.org/node/3083055, which includes recommendations on which theme to use.</code> 144 times</del></li>
<li><del><code>You should use assertCount($expectedCount, $variable) instead of assertSame($expectedCount, count($variable)).</code></del> 138 times</li>
<li><code>You should use assertFalse() instead of assertSame() when expecting "false"</code> 105 times</li>
</ul>
<p>Attached a csv file (txt extension because csv is not allowed).</p>
> Related issue: [Issue #3371547](https://www.drupal.org/node/3371547)
issue