Loading core/tests/Drupal/Tests/Component/Annotation/PluginIdTest.php +3 −12 Original line number Diff line number Diff line Loading @@ -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, Loading @@ -47,7 +38,7 @@ public function testGet() { * @covers ::getId */ public function testGetId() { $plugin = new PluginID([]); $plugin = new PluginID(); $plugin->value = 'example'; $this->assertEquals('example', $plugin->getId()); } Loading Loading
core/tests/Drupal/Tests/Component/Annotation/PluginIdTest.php +3 −12 Original line number Diff line number Diff line Loading @@ -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, Loading @@ -47,7 +38,7 @@ public function testGet() { * @covers ::getId */ public function testGetId() { $plugin = new PluginID([]); $plugin = new PluginID(); $plugin->value = 'example'; $this->assertEquals('example', $plugin->getId()); } Loading