public function PluginWithFormsTraitTest::testGetFormClass in Drupal 8
Same name and namespace in other branches
- 9 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));
}