Replace deprecated QueryFactory class with EntityStorageInterface
Issue #3098811 on drupal.org by jonathan1055.
15x: The Drupal\Core\Entity\Query\QueryFactory class is deprecated in Drupal 8.3.0, will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\EntityStorageInterface::getQuery() or \Drupal\Core\Entity\EntityStorageInterface::getAggregateQuery() instead. See https://www.drupal.org/node/2849874.
11x in DecoratorTest::testEntityTypeDecorator from Drupal\Tests\webprofiler\Kernel
1x in DataCollectorTest::testBlocksDataCollector from Drupal\Tests\webprofiler\Functional
1x in ToolbarTest::testToolbarOnFrontPage from Drupal\Tests\webprofiler\FunctionalJavascript
1x in ToolbarTest::testToolbarReportPage from Drupal\Tests\webprofiler\FunctionalJavascript
1x in ToolbarTest::testToolbarNotAppearsOnExcludedPath from Drupal\Tests\webprofiler\FunctionalJavascript
Change Record: https://www.drupal.org/node/2849874