You are here

protected function FileCacheFactoryTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Component/FileCache/FileCacheFactoryTest.php \Drupal\Tests\Component\FileCache\FileCacheFactoryTest::setUp()
  2. 9 core/tests/Drupal/Tests/Component/FileCache/FileCacheFactoryTest.php \Drupal\Tests\Component\FileCache\FileCacheFactoryTest::setUp()

File

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

Class

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

Namespace

Drupal\Tests\Component\FileCache

Code

protected function setUp() : void {
  parent::setUp();
  $configuration = [
    'test_foo_settings' => [
      'collection' => 'test-23',
      'cache_backend_class' => '\\Drupal\\Tests\\Component\\FileCache\\StaticFileCacheBackend',
      'cache_backend_configuration' => [
        'bin' => 'dog',
      ],
    ],
  ];
  FileCacheFactory::setConfiguration($configuration);
  FileCacheFactory::setPrefix('prefix');
}