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
*/
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.');
// 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.');