function AnnotatedClassDiscoveryTest::setUp
File
- 
              core/
tests/ Drupal/ Tests/ Component/ Annotation/ AnnotatedClassDiscoveryTest.php, line 22  
Class
- AnnotatedClassDiscoveryTest
 - @coversDefaultClass \Drupal\Component\Annotation\Plugin\Discovery\AnnotatedClassDiscovery[[api-linebreak]] @group Annotation @runTestsInSeparateProcesses
 
Namespace
Drupal\Tests\Component\AnnotationCode
protected function setUp() : void {
  parent::setUp();
  // Ensure the file cache is disabled.
  FileCacheFactory::setConfiguration([
    FileCacheFactory::DISABLE_CACHE => TRUE,
  ]);
  // Ensure that FileCacheFactory has a prefix.
  FileCacheFactory::setPrefix('prefix');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.