function ConfigTargetTest::testFromFormException
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Form/ConfigTargetTest.php \Drupal\Tests\Core\Form\ConfigTargetTest::testFromFormException()
- 10 core/tests/Drupal/Tests/Core/Form/ConfigTargetTest.php \Drupal\Tests\Core\Form\ConfigTargetTest::testFromFormException()
Tests from form exception.
@legacy-covers ::fromForm
Attributes
#[DataProvider('providerTestFromFormException')]
File
-
core/
tests/ Drupal/ Tests/ Core/ Form/ ConfigTargetTest.php, line 175
Class
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.