function FileCacheFactoryTest::testGetSetPrefix
@legacy-covers ::getPrefix @legacy-covers ::setPrefix
File
-
core/
tests/ Drupal/ Tests/ Component/ FileCache/ FileCacheFactoryTest.php, line 175
Class
Namespace
Drupal\Tests\Component\FileCacheCode
public function testGetSetPrefix() : void {
// Random generator.
$random = new Random();
$prefix = $random->name(8, TRUE);
FileCacheFactory::setPrefix($prefix);
$this->assertEquals($prefix, FileCacheFactory::getPrefix());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.