Unverified Commit 70eb124d authored by alexpott's avatar alexpott
Browse files

Issue #3205037 by longwave, neclimdul:...

Issue #3205037 by longwave, neclimdul: Drupal\Tests\Component\Annotation\PluginIdTest tests a non-existent constructor
parent 92988369
...@@ -15,17 +15,8 @@ class PluginIdTest extends TestCase { ...@@ -15,17 +15,8 @@ class PluginIdTest extends TestCase {
* @covers ::get * @covers ::get
*/ */
public function testGet() { public function testGet() {
// Assert plugin starts empty regardless of constructor. // Assert plugin starts empty.
$plugin = new PluginID([ $plugin = new PluginID();
'foo' => 'bar',
'biz' => [
'baz' => 'boom',
],
'nestedAnnotation' => new PluginID([
'foo' => 'bar',
]),
'value' => 'biz',
]);
$this->assertEquals([ $this->assertEquals([
'id' => NULL, 'id' => NULL,
'class' => NULL, 'class' => NULL,
...@@ -47,7 +38,7 @@ public function testGet() { ...@@ -47,7 +38,7 @@ public function testGet() {
* @covers ::getId * @covers ::getId
*/ */
public function testGetId() { public function testGetId() {
$plugin = new PluginID([]); $plugin = new PluginID();
$plugin->value = 'example'; $plugin->value = 'example';
$this->assertEquals('example', $plugin->getId()); $this->assertEquals('example', $plugin->getId());
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment