public function FileCacheFactoryTest::testGetSetConfiguration in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 77 - Contains \Drupal\Tests\Component\FileCache\FileCacheFactoryTest.
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']);
}