function FileCacheFactoryTest::testGetConfigurationOverrides

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Component/FileCache/FileCacheFactoryTest.php \Drupal\Tests\Component\FileCache\FileCacheFactoryTest::testGetConfigurationOverrides()
  2. 8.9.x core/tests/Drupal/Tests/Component/FileCache/FileCacheFactoryTest.php \Drupal\Tests\Component\FileCache\FileCacheFactoryTest::testGetConfigurationOverrides()
  3. 10 core/tests/Drupal/Tests/Component/FileCache/FileCacheFactoryTest.php \Drupal\Tests\Component\FileCache\FileCacheFactoryTest::testGetConfigurationOverrides()

@covers ::get

@dataProvider configurationDataProvider

File

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

Class

FileCacheFactoryTest
@coversDefaultClass \Drupal\Component\FileCache\FileCacheFactory @group FileCache

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.