You are here

protected function AnnotatedClassDiscoveryTest::setUp in Drupal 8

Same name in this branch
  1. 8 core/tests/Drupal/Tests/Component/Annotation/AnnotatedClassDiscoveryTest.php \Drupal\Tests\Component\Annotation\AnnotatedClassDiscoveryTest::setUp()
  2. 8 core/tests/Drupal/KernelTests/Core/Plugin/Discovery/AnnotatedClassDiscoveryTest.php \Drupal\KernelTests\Core\Plugin\Discovery\AnnotatedClassDiscoveryTest::setUp()
Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Component/Annotation/AnnotatedClassDiscoveryTest.php \Drupal\Tests\Component\Annotation\AnnotatedClassDiscoveryTest::setUp()

File

core/tests/Drupal/Tests/Component/Annotation/AnnotatedClassDiscoveryTest.php, line 20

Class

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

Namespace

Drupal\Tests\Component\Annotation

Code

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

  // Ensure the file cache is disabled.
  FileCacheFactory::setConfiguration([
    FileCacheFactory::DISABLE_CACHE => TRUE,
  ]);

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