function CacheCollectorTest::testDeprecatedNormalizeLockName

@group legacy

File

core/tests/Drupal/Tests/Core/Cache/CacheCollectorTest.php, line 448

Class

CacheCollectorTest
@coversDefaultClass \Drupal\Core\Cache\CacheCollector @group Cache

Namespace

Drupal\Tests\Core\Cache

Code

public function testDeprecatedNormalizeLockName() : void {
    $this->expectDeprecation('Drupal\\Core\\Cache\\CacheCollector::normalizeLockName is deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. The lock service is responsible for normalizing the lock name. See https://www.drupal.org/node/3436961');
    $this->collector
        ->normalizeLockName('lock');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.