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
/
Plugin
/
Discovery
/
StaticDiscoveryDecoratorTest.php
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 1828d73f36c9dabd118245877abd730acc4e17a5..a44721bd9b4e76d49f3981fcc6188cb35b08cf97 100644
(file)
--- 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;
namespace Drupal\Tests\Component\Plugin\Discovery;
-use
Drupal\Tests\Unit
TestCase;
+use
PHPUnit\Framework\
TestCase;
/**
* @group Plugin
* @coversDefaultClass \Drupal\Component\Plugin\Discovery\StaticDiscoveryDecorator
*/
/**
* @group Plugin
* @coversDefaultClass \Drupal\Component\Plugin\Discovery\StaticDiscoveryDecorator
*/
-class StaticDiscoveryDecoratorTest extends
Unit
TestCase {
+class StaticDiscoveryDecoratorTest extends TestCase {
/**
* Helper method to provide a mocked callback object with expectations.
/**
* 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.
// Exercise getDefinitions(). It calls parent::getDefinitions() but in this
// case there will be no side-effects.
- $this->assert
Array
Equals(
+ $this->assertEquals(
$definitions,
$mock_decorator->getDefinitions()
);
$definitions,
$mock_decorator->getDefinitions()
);
@@
-220,7
+220,7
@@
class StaticDiscoveryDecoratorTest extends UnitTestCase {
$ref_decorated->setValue($mock_decorator, $mock_decorated);
// Exercise __call.
$ref_decorated->setValue($mock_decorator, $mock_decorated);
// Exercise __call.
- $this->assert
Array
Equals(
+ $this->assertEquals(
$args,
\call_user_func_array([$mock_decorated, $method], $args)
);
$args,
\call_user_func_array([$mock_decorated, $method], $args)
);