Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / views_ui / tests / src / Functional / CachedDataUITest.php
index 51e489d93e6c2236132bf0bf251a7771d91db183..c8da87ce5a306087d365605122a5993bc1074de0 100644 (file)
@@ -3,7 +3,7 @@
 namespace Drupal\Tests\views_ui\Functional;
 
 /**
- * Tests the user tempstore cache in the UI.
+ * Tests the shared tempstore cache in the UI.
  *
  * @group views_ui
  */
@@ -17,12 +17,12 @@ class CachedDataUITest extends UITestBase {
   public static $testViews = ['test_view'];
 
   /**
-   * Tests the user tempstore views data in the UI.
+   * Tests the shared tempstore views data in the UI.
    */
   public function testCacheData() {
     $views_admin_user_uid = $this->fullAdminUser->id();
 
-    $temp_store = $this->container->get('user.shared_tempstore')->get('views');
+    $temp_store = $this->container->get('tempstore.shared')->get('views');
     // The view should not be locked.
     $this->assertEqual($temp_store->getMetadata('test_view'), NULL, 'The view is not locked.');
 
@@ -40,7 +40,7 @@ class CachedDataUITest extends UITestBase {
 
     // Cancel the view edit and make sure the cache is deleted.
     $this->drupalPostForm(NULL, [], t('Cancel'));
-    $this->assertEqual($temp_store->getMetadata('test_view'), NULL, 'User tempstore data has been removed.');
+    $this->assertEqual($temp_store->getMetadata('test_view'), NULL, 'Shared tempstore data has been removed.');
     // Test we are redirected to the view listing page.
     $this->assertUrl('admin/structure/views', [], 'Redirected back to the view listing page.');