Security update for Core, with self-updated composer
[yaffs-website] / web / core / tests / Drupal / Tests / Component / Plugin / Discovery / DiscoveryCachedTraitTest.php
index 0f112fb2ef4e49270fc009e5fc0784e36aeb9e4d..2ed15bbfe29bb14d8014f129cef79224ec7485e9 100644 (file)
@@ -2,14 +2,14 @@
 
 namespace Drupal\Tests\Component\Plugin\Discovery;
 
-use Drupal\Tests\UnitTestCase;
+use PHPUnit\Framework\TestCase;
 
 /**
  * @coversDefaultClass \Drupal\Component\Plugin\Discovery\DiscoveryCachedTrait
  * @uses \Drupal\Component\Plugin\Discovery\DiscoveryTrait
  * @group Plugin
  */
-class DiscoveryCachedTraitTest extends UnitTestCase {
+class DiscoveryCachedTraitTest extends TestCase {
 
   /**
    * Data provider for testGetDefinition().
@@ -46,7 +46,7 @@ class DiscoveryCachedTraitTest extends UnitTestCase {
       $trait->expects($this->once())
         ->method('getDefinitions')
         // Use a callback method, so we can perform the side-effects.
-        ->willReturnCallback(function() use ($reflection_definitions, $trait, $get_definitions) {
+        ->willReturnCallback(function () use ($reflection_definitions, $trait, $get_definitions) {
           $reflection_definitions->setValue($trait, $get_definitions);
           return $get_definitions;
         });