protected function FileCacheFactoryTest::setUp 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::setUp()
Overrides UnitTestCase::setUp
File
- core/
tests/ Drupal/ Tests/ Component/ FileCache/ FileCacheFactoryTest.php, line 22 - Contains \Drupal\Tests\Component\FileCache\FileCacheFactoryTest.
Class
- FileCacheFactoryTest
- @coversDefaultClass \Drupal\Component\FileCache\FileCacheFactory @group FileCache
Namespace
Drupal\Tests\Component\FileCacheCode
protected function setUp() {
parent::setUp();
$settings = [
'collection' => 'test-23',
'cache_backend_class' => '\\Drupal\\Tests\\Component\\FileCache\\StaticFileCacheBackend',
'cache_backend_configuration' => [
'bin' => 'dog',
],
];
$configuration = FileCacheFactory::getConfiguration();
if (!$configuration) {
$configuration = [];
}
$configuration += [
'test_foo_settings' => $settings,
];
FileCacheFactory::setConfiguration($configuration);
FileCacheFactory::setPrefix('prefix');
}