function 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[[api-linebreak]] @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.