function PluginIdTest::testGetId

@covers ::getId

File

core/tests/Drupal/Tests/Component/Annotation/PluginIdTest.php, line 40

Class

PluginIdTest
@coversDefaultClass \Drupal\Component\Annotation\PluginId[[api-linebreak]] @group Annotation

Namespace

Drupal\Tests\Component\Annotation

Code

public function testGetId() {
  $plugin = new PluginID();
  $plugin->value = 'example';
  $this->assertEquals('example', $plugin->getId());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.