function PluginWithFormsTraitTest::testGetFormClass
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Plugin/PluginWithFormsTraitTest.php \Drupal\Tests\Core\Plugin\PluginWithFormsTraitTest::testGetFormClass()
- 10 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 23
Class
- PluginWithFormsTraitTest
- @coversDefaultClass \Drupal\Core\Plugin\PluginWithFormsTrait @group Plugin
Namespace
Drupal\Tests\Core\PluginCode
public function testGetFormClass(PluginWithFormsInterface $block_plugin, $operation, $expected_class) {
$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.