function CacheTest::testKeyFromQuery
@covers ::keyFromQuery
      
    
@group legacy
File
- 
              core/
tests/ Drupal/ Tests/ Core/ Cache/ CacheTest.php, line 196  
Class
- CacheTest
 - @coversDefaultClass \Drupal\Core\Cache\Cache[[api-linebreak]] @group Cache
 
Namespace
Drupal\Tests\Core\CacheCode
public function testKeyFromQuery() : void {
  $this->expectDeprecation('Drupal\\Core\\Cache\\Cache::keyFromQuery is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. No replacement provided. See https://www.drupal.org/node/3322044');
  $query = new Select(new StubConnection(new StubPDO(), []), 'dne');
  Cache::keyFromQuery($query);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.