X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Ftests%2FDrupal%2FTests%2FComponent%2FDiscovery%2FYamlDiscoveryTest.php;h=2922586f0faf0764da4dfb16294894c244a998b1;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=897a7889840af0ac4968b6e5c376aa135082053b;hpb=aea91e65e895364e460983b890e295aa5d5540a5;p=yaffs-website diff --git a/web/core/tests/Drupal/Tests/Component/Discovery/YamlDiscoveryTest.php b/web/core/tests/Drupal/Tests/Component/Discovery/YamlDiscoveryTest.php index 897a78898..2922586f0 100644 --- a/web/core/tests/Drupal/Tests/Component/Discovery/YamlDiscoveryTest.php +++ b/web/core/tests/Drupal/Tests/Component/Discovery/YamlDiscoveryTest.php @@ -2,18 +2,27 @@ namespace Drupal\Tests\Component\Discovery; -use Drupal\Tests\UnitTestCase; use Drupal\Component\Discovery\YamlDiscovery; +use Drupal\Component\FileCache\FileCacheFactory; use org\bovigo\vfs\vfsStream; use org\bovigo\vfs\vfsStreamWrapper; use org\bovigo\vfs\vfsStreamDirectory; +use PHPUnit\Framework\TestCase; /** * YamlDiscovery component unit tests. * * @group Discovery */ -class YamlDiscoveryTest extends UnitTestCase { +class YamlDiscoveryTest extends TestCase { + + /** + * {@inheritdoc} + */ + protected function setUp() { + // Ensure that FileCacheFactory has a prefix. + FileCacheFactory::setPrefix('prefix'); + } /** * Tests the YAML file discovery.