function PluginTest::testGetClass
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Component/Annotation/PluginTest.php \Drupal\Tests\Component\Annotation\PluginTest::testGetClass()
- 8.9.x core/tests/Drupal/Tests/Component/Annotation/PluginTest.php \Drupal\Tests\Component\Annotation\PluginTest::testGetClass()
- 10 core/tests/Drupal/Tests/Component/Annotation/PluginTest.php \Drupal\Tests\Component\Annotation\PluginTest::testGetClass()
@covers ::getClass
File
-
core/
tests/ Drupal/ Tests/ Component/ Annotation/ PluginTest.php, line 81
Class
- PluginTest
- @coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Component%21Annotation%21Plugin.php/class/Plugin/11.x" title="Defines a Plugin annotation object." class="local">\Drupal\Component\Annotation\Plugin</a> @group Annotation
Namespace
Drupal\Tests\Component\AnnotationCode
public function testGetClass() : void {
$plugin = new Plugin([
'class' => 'example',
]);
$this->assertEquals('example', $plugin->getClass());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.