From 70eb124d5f5877249e97219e3601e7e6e60da86f Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Tue, 27 Apr 2021 15:35:17 +0100 Subject: [PATCH] Issue #3205037 by longwave, neclimdul: Drupal\Tests\Component\Annotation\PluginIdTest tests a non-existent constructor --- .../Tests/Component/Annotation/PluginIdTest.php | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/core/tests/Drupal/Tests/Component/Annotation/PluginIdTest.php b/core/tests/Drupal/Tests/Component/Annotation/PluginIdTest.php index f115de34f118..15cd6e860d60 100644 --- a/core/tests/Drupal/Tests/Component/Annotation/PluginIdTest.php +++ b/core/tests/Drupal/Tests/Component/Annotation/PluginIdTest.php @@ -15,17 +15,8 @@ class PluginIdTest extends TestCase { * @covers ::get */ public function testGet() { - // Assert plugin starts empty regardless of constructor. - $plugin = new PluginID([ - 'foo' => 'bar', - 'biz' => [ - 'baz' => 'boom', - ], - 'nestedAnnotation' => new PluginID([ - 'foo' => 'bar', - ]), - 'value' => 'biz', - ]); + // Assert plugin starts empty. + $plugin = new PluginID(); $this->assertEquals([ 'id' => NULL, 'class' => NULL, @@ -47,7 +38,7 @@ class PluginIdTest extends TestCase { * @covers ::getId */ public function testGetId() { - $plugin = new PluginID([]); + $plugin = new PluginID(); $plugin->value = 'example'; $this->assertEquals('example', $plugin->getId()); }