function FileCacheFactoryTest::testGetSetConfiguration

@legacy-covers ::getConfiguration @legacy-covers ::setConfiguration

File

core/tests/Drupal/Tests/Component/FileCache/FileCacheFactoryTest.php, line 163

Class

FileCacheFactoryTest
Tests Drupal\Component\FileCache\FileCacheFactory.

Namespace

Drupal\Tests\Component\FileCache

Code

public function testGetSetConfiguration() : void {
  $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.