function FileCacheFactoryTest::testGetConfigurationOverrides

@legacy-covers ::get

Attributes

#[DataProvider('configurationDataProvider')]

File

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

Class

FileCacheFactoryTest
Tests Drupal\Component\FileCache\FileCacheFactory.

Namespace

Drupal\Tests\Component\FileCache

Code

public function testGetConfigurationOverrides($configuration, $arguments, $class) : void {
  FileCacheFactory::setConfiguration($configuration);
  $file_cache = FileCacheFactory::get('test_foo_settings', $arguments);
  $this->assertInstanceOf($class, $file_cache);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.