Replace deprecated user.private_tempstore and user.shared_tempstore with services now in Core
Issue #3100276 on drupal.org by jonathan1055.
The User module's services user.private_tempstore
and user.shared_tempstore
are deprecated in favour of tempstore.private
and tempstore.shared
. Code that uses the User module services should be updated to use the new services from core.
3x: \Drupal\user\PrivateTempStoreFactory is scheduled for removal in Drupal 9.0.0. Use \Drupal\Core\TempStore\PrivateTempStoreFactory instead. See https://www.drupal.org/node/2935639.
and
3x: \Drupal\user\SharedTempStoreFactory is scheduled for removal in Drupal 9.0.0. Use \Drupal\Core\TempStore\SharedTempStoreFactory instead. See https://www.drupal.org/node/2935639.
The same three tests cause this message, all in Drupal\Tests\webprofiler\FunctionalJavascript
1x in ToolbarTest::testToolbarOnFrontPage
1x in ToolbarTest::testToolbarReportPage
1x in ToolbarTest::testToolbarNotAppearsOnExcludedPath
Change record: https://www.drupal.org/node/2935639