function IconPackExtractorFormTest::testBuildConfigurationForm
Test the IconPackExtractorForm::buildConfigurationForm method.
File
-
core/
tests/ Drupal/ Tests/ Core/ Theme/ Icon/ IconPackExtractorFormTest.php, line 56
Class
- IconPackExtractorFormTest
- @coversDefaultClass \Drupal\Core\Theme\Icon\IconPackExtractorForm
Namespace
Drupal\Tests\Core\Theme\IconCode
public function testBuildConfigurationForm() : void {
$form = [
'test_form' => 'test_form',
];
/** @var \Drupal\Core\Form\FormStateInterface $formState */
$formState = $this->formState
->reveal();
$result = $this->iconPackForm
->buildConfigurationForm($form, $formState);
$this->assertSame('plugin_build_form', $result['plugin_build_form']);
$this->assertSame($form['test_form'], $result['test_form']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.