function FileCacheFactoryTest::testGetNoPrefix
@legacy-covers ::get
File
-
core/
tests/ Drupal/ Tests/ Component/ FileCache/ FileCacheFactoryTest.php, line 66
Class
Namespace
Drupal\Tests\Component\FileCacheCode
public function testGetNoPrefix() : void {
FileCacheFactory::setPrefix(NULL);
$this->expectException(\InvalidArgumentException::class);
$this->expectExceptionMessage('Required prefix configuration is missing');
FileCacheFactory::get('test_foo_settings', []);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.