function ConfigTargetTest::testFromFormException
@covers ::fromForm
@dataProvider providerTestFromFormException
File
-
core/
tests/ Drupal/ Tests/ Core/ Form/ ConfigTargetTest.php, line 161
Class
- ConfigTargetTest
- @coversDefaultClass \Drupal\Core\Form\ConfigTarget[[api-linebreak]] @group Form
Namespace
Drupal\Tests\Core\FormCode
public function testFromFormException(array $form, array $array_parents, string $exception_message) : void {
$this->expectException(\LogicException::class);
$this->expectExceptionMessage($exception_message);
ConfigTarget::fromForm($array_parents, $form);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.