function ConfigTargetTest::testMultiTargetWithoutCallables
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Form/ConfigTargetTest.php \Drupal\Tests\Core\Form\ConfigTargetTest::testMultiTargetWithoutCallables()
@dataProvider providerMultiTargetWithoutCallables
File
-
core/
tests/ Drupal/ Tests/ Core/ Form/ ConfigTargetTest.php, line 212
Class
- ConfigTargetTest
- @coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Form%21ConfigTarget.php/class/ConfigTarget/10" title="Represents the mapping of a config property to a form element." class="local">\Drupal\Core\Form\ConfigTarget</a> @group Form
Namespace
Drupal\Tests\Core\FormCode
public function testMultiTargetWithoutCallables(...$arguments) : void {
$this->expectException(\LogicException::class);
$this->expectExceptionMessage('The $fromConfig and $toConfig arguments must be passed to Drupal\\Core\\Form\\ConfigTarget::__construct() if multiple property paths are targeted.');
new ConfigTarget(...$arguments);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.