function CacheTest::testSubqueryStringCache
Tests that Subqueries are cached as expected.
File
- 
              core/modules/ views/ tests/ src/ Kernel/ Plugin/ CacheTest.php, line 306 
Class
- CacheTest
- Tests pluggable caching for views.
Namespace
Drupal\Tests\views\Kernel\PluginCode
public function testSubqueryStringCache() : void {
  // Execute the view.
  $view = Views::getView('test_groupwise_term_ui');
  $view->setDisplay();
  $this->executeView($view);
  // Request for the cache.
  $cid = 'views_relationship_groupwise_max:test_groupwise_term_ui:default:tid_representative';
  $cache = \Drupal::cache('data')->get($cid);
  $this->assertEquals($cid, $cache->cid, 'Subquery String cached as expected.');
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
