function FileCacheTest::setUp

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

File

core/tests/Drupal/Tests/Component/FileCache/FileCacheTest.php, line 33

Class

FileCacheTest
@coversDefaultClass \Drupal\Component\FileCache\FileCache @group FileCache

Namespace

Drupal\Tests\Component\FileCache

Code

protected function setUp() : void {
    parent::setUp();
    $this->fileCache = new FileCache('prefix', 'test', '\\Drupal\\Tests\\Component\\FileCache\\StaticFileCacheBackend', [
        'bin' => 'llama',
    ]);
    $this->staticFileCache = new StaticFileCacheBackend([
        'bin' => 'llama',
    ]);
}

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