diff --git a/core/tests/Drupal/Tests/Component/Plugin/DefaultPluginBagTest.php b/core/tests/Drupal/Tests/Component/Plugin/DefaultPluginBagTest.php index 0f5cb50..f12c146 100644 --- a/core/tests/Drupal/Tests/Component/Plugin/DefaultPluginBagTest.php +++ b/core/tests/Drupal/Tests/Component/Plugin/DefaultPluginBagTest.php @@ -53,7 +53,7 @@ public function testGet() { $this->setupPluginBag($this->once()); $apple = $this->pluginInstances['apple']; - $this->assertEquals($apple, $this->defaultPluginBag->get('apple')); + $this->assertSame($apple, $this->defaultPluginBag->get('apple')); } /** diff --git a/core/tests/Drupal/Tests/Component/Plugin/DefaultSinglePluginBagTest.php b/core/tests/Drupal/Tests/Component/Plugin/DefaultSinglePluginBagTest.php index eb0d3f4..85718f8 100644 --- a/core/tests/Drupal/Tests/Component/Plugin/DefaultSinglePluginBagTest.php +++ b/core/tests/Drupal/Tests/Component/Plugin/DefaultSinglePluginBagTest.php @@ -7,7 +7,6 @@ namespace Drupal\Tests\Component\Plugin; -use Drupal\Component\Plugin\DefaultPluginBag; use Drupal\Component\Plugin\DefaultSinglePluginBag; /** @@ -46,12 +45,13 @@ protected function setupPluginBag(\PHPUnit_Framework_MockObject_Matcher_InvokedR } /** - * Tests the getConfiguration() method with configurable plugins. + * Tests the get() method. */ - public function testConfigurableGetConfiguration() { + public function testGet() { $this->setupPluginBag($this->once()); - $plugin = $this->defaultPluginBag->get('apple'); - $this->assertSame('apple', $plugin->getPluginId()); + $apple = $this->pluginInstances['apple']; + + $this->assertSame($apple, $this->defaultPluginBag->get('apple')); } }