You are here

protected function AnnotatedClassDiscoveryCachedTest::setUp in Drupal 10

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

File

core/tests/Drupal/Tests/Component/Annotation/AnnotatedClassDiscoveryCachedTest.php, line 19

Class

AnnotatedClassDiscoveryCachedTest
@coversDefaultClass \Drupal\Component\Annotation\Plugin\Discovery\AnnotatedClassDiscovery @group Annotation @runTestsInSeparateProcesses

Namespace

Drupal\Tests\Component\Annotation

Code

protected function setUp() : void {
  parent::setUp();

  // Ensure FileCacheFactory::DISABLE_CACHE is *not* set, since we're testing
  // integration with the file cache.
  FileCacheFactory::setConfiguration([]);

  // Ensure that FileCacheFactory has a prefix.
  FileCacheFactory::setPrefix('prefix');
}