function PluginWithFormsTraitTest::testGetFormClass
Tests get form class.
@legacy-covers ::getFormClass @legacy-covers ::hasFormClass
Attributes
#[DataProvider('providerGetFormClass')]
File
-
core/
tests/ Drupal/ Tests/ Core/ Plugin/ PluginWithFormsTraitTest.php, line 30
Class
Namespace
Drupal\Tests\Core\PluginCode
public function testGetFormClass(PluginWithFormsInterface $block_plugin, $operation, $expected_class) : void {
$this->assertSame($expected_class, $block_plugin->getFormClass($operation));
$this->assertSame($expected_class !== NULL, $block_plugin->hasFormClass($operation));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.