X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Ftests%2FDrupal%2FTests%2FComponent%2FPlugin%2FDiscovery%2FDiscoveryCachedTraitTest.php;fp=web%2Fcore%2Ftests%2FDrupal%2FTests%2FComponent%2FPlugin%2FDiscovery%2FDiscoveryCachedTraitTest.php;h=2ed15bbfe29bb14d8014f129cef79224ec7485e9;hp=0f112fb2ef4e49270fc009e5fc0784e36aeb9e4d;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/tests/Drupal/Tests/Component/Plugin/Discovery/DiscoveryCachedTraitTest.php b/web/core/tests/Drupal/Tests/Component/Plugin/Discovery/DiscoveryCachedTraitTest.php index 0f112fb2e..2ed15bbfe 100644 --- a/web/core/tests/Drupal/Tests/Component/Plugin/Discovery/DiscoveryCachedTraitTest.php +++ b/web/core/tests/Drupal/Tests/Component/Plugin/Discovery/DiscoveryCachedTraitTest.php @@ -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; });