function ConfigTargetTest::testMultiTargetWithoutCallables
Same name 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 \Drupal\Core\Form\ConfigTarget @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.