projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Security update for Core, with self-updated composer
[yaffs-website]
/
web
/
core
/
tests
/
Drupal
/
Tests
/
Component
/
Discovery
/
YamlDiscoveryTest.php
diff --git
a/web/core/tests/Drupal/Tests/Component/Discovery/YamlDiscoveryTest.php
b/web/core/tests/Drupal/Tests/Component/Discovery/YamlDiscoveryTest.php
index 897a7889840af0ac4968b6e5c376aa135082053b..2922586f0faf0764da4dfb16294894c244a998b1 100644
(file)
--- 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;
namespace Drupal\Tests\Component\Discovery;
-use Drupal\Tests\UnitTestCase;
use Drupal\Component\Discovery\YamlDiscovery;
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 org\bovigo\vfs\vfsStream;
use org\bovigo\vfs\vfsStreamWrapper;
use org\bovigo\vfs\vfsStreamDirectory;
+use PHPUnit\Framework\TestCase;
/**
* YamlDiscovery component unit tests.
*
* @group Discovery
*/
/**
* 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.
/**
* Tests the YAML file discovery.