X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Ftests%2FDrupal%2FTests%2FComponent%2FPlugin%2FDiscovery%2FStaticDiscoveryDecoratorTest.php;fp=web%2Fcore%2Ftests%2FDrupal%2FTests%2FComponent%2FPlugin%2FDiscovery%2FStaticDiscoveryDecoratorTest.php;h=a44721bd9b4e76d49f3981fcc6188cb35b08cf97;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=1828d73f36c9dabd118245877abd730acc4e17a5;hpb=aea91e65e895364e460983b890e295aa5d5540a5;p=yaffs-website diff --git a/web/core/tests/Drupal/Tests/Component/Plugin/Discovery/StaticDiscoveryDecoratorTest.php b/web/core/tests/Drupal/Tests/Component/Plugin/Discovery/StaticDiscoveryDecoratorTest.php index 1828d73f3..a44721bd9 100644 --- a/web/core/tests/Drupal/Tests/Component/Plugin/Discovery/StaticDiscoveryDecoratorTest.php +++ b/web/core/tests/Drupal/Tests/Component/Plugin/Discovery/StaticDiscoveryDecoratorTest.php @@ -2,13 +2,13 @@ namespace Drupal\Tests\Component\Plugin\Discovery; -use Drupal\Tests\UnitTestCase; +use PHPUnit\Framework\TestCase; /** * @group Plugin * @coversDefaultClass \Drupal\Component\Plugin\Discovery\StaticDiscoveryDecorator */ -class StaticDiscoveryDecoratorTest extends UnitTestCase { +class StaticDiscoveryDecoratorTest extends TestCase { /** * Helper method to provide a mocked callback object with expectations. @@ -171,7 +171,7 @@ class StaticDiscoveryDecoratorTest extends UnitTestCase { // Exercise getDefinitions(). It calls parent::getDefinitions() but in this // case there will be no side-effects. - $this->assertArrayEquals( + $this->assertEquals( $definitions, $mock_decorator->getDefinitions() ); @@ -220,7 +220,7 @@ class StaticDiscoveryDecoratorTest extends UnitTestCase { $ref_decorated->setValue($mock_decorator, $mock_decorated); // Exercise __call. - $this->assertArrayEquals( + $this->assertEquals( $args, \call_user_func_array([$mock_decorated, $method], $args) );