function CacheTest::testKeyFromQuery

@covers ::keyFromQuery @group legacy

File

core/tests/Drupal/Tests/Core/Cache/CacheTest.php, line 196

Class

CacheTest
@coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Cache%21Cache.php/class/Cache/10" title="Helper methods for cache." class="local">\Drupal\Core\Cache\Cache</a> @group Cache

Namespace

Drupal\Tests\Core\Cache

Code

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.