function PluginWithFormsTraitTest::testGetFormClass
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Plugin/PluginWithFormsTraitTest.php \Drupal\Tests\Core\Plugin\PluginWithFormsTraitTest::testGetFormClass()
- 8.9.x core/tests/Drupal/Tests/Core/Plugin/PluginWithFormsTraitTest.php \Drupal\Tests\Core\Plugin\PluginWithFormsTraitTest::testGetFormClass()
- 11.x core/tests/Drupal/Tests/Core/Plugin/PluginWithFormsTraitTest.php \Drupal\Tests\Core\Plugin\PluginWithFormsTraitTest::testGetFormClass()
@covers ::getFormClass @covers ::hasFormClass @dataProvider providerGetFormClass
File
-
core/
tests/ Drupal/ Tests/ Core/ Plugin/ PluginWithFormsTraitTest.php, line 25
Class
- PluginWithFormsTraitTest
- @coversDefaultClass \Drupal\Core\Plugin\PluginWithFormsTrait @group Plugin
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.