function ConfigTargetTest::testMultiTargetWithoutCallables

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Form/ConfigTargetTest.php \Drupal\Tests\Core\Form\ConfigTargetTest::testMultiTargetWithoutCallables()
  2. 10 core/tests/Drupal/Tests/Core/Form/ConfigTargetTest.php \Drupal\Tests\Core\Form\ConfigTargetTest::testMultiTargetWithoutCallables()

Tests multi target without callables.

Attributes

#[DataProvider('providerMultiTargetWithoutCallables')]

File

core/tests/Drupal/Tests/Core/Form/ConfigTargetTest.php, line 227

Class

ConfigTargetTest
Tests Drupal\Core\Form\ConfigTarget.

Namespace

Drupal\Tests\Core\Form

Code

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.