function FileCacheFactoryTest::testGetSetConfiguration
Same name in other branches
- 8.9.x core/tests/Drupal/Tests/Component/FileCache/FileCacheFactoryTest.php \Drupal\Tests\Component\FileCache\FileCacheFactoryTest::testGetSetConfiguration()
- 10 core/tests/Drupal/Tests/Component/FileCache/FileCacheFactoryTest.php \Drupal\Tests\Component\FileCache\FileCacheFactoryTest::testGetSetConfiguration()
- 11.x core/tests/Drupal/Tests/Component/FileCache/FileCacheFactoryTest.php \Drupal\Tests\Component\FileCache\FileCacheFactoryTest::testGetSetConfiguration()
@covers ::getConfiguration @covers ::setConfiguration
File
-
core/
tests/ Drupal/ Tests/ Component/ FileCache/ FileCacheFactoryTest.php, line 164
Class
- FileCacheFactoryTest
- @coversDefaultClass \Drupal\Component\FileCache\FileCacheFactory @group FileCache
Namespace
Drupal\Tests\Component\FileCacheCode
public function testGetSetConfiguration() {
$configuration = FileCacheFactory::getConfiguration();
$configuration['test_foo_bar'] = [
'bar' => 'llama',
];
FileCacheFactory::setConfiguration($configuration);
$configuration = FileCacheFactory::getConfiguration();
$this->assertEquals([
'bar' => 'llama',
], $configuration['test_foo_bar']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.