public function CallbackTest::testCallbackExceptions in Drupal 8
Same name and namespace in other branches
- 9 core/modules/migrate/tests/src/Unit/process/CallbackTest.php \Drupal\Tests\migrate\Unit\process\CallbackTest::testCallbackExceptions()
Test callback exceptions.
@dataProvider providerCallbackExceptions
File
- core/
modules/ migrate/ tests/ src/ Unit/ process/ CallbackTest.php, line 41
Class
- CallbackTest
- Tests the callback process plugin.
Namespace
Drupal\Tests\migrate\Unit\processCode
public function testCallbackExceptions($message, $configuration) {
$this
->expectException(\InvalidArgumentException::class);
$this
->expectExceptionMessage($message);
$this->plugin = new Callback($configuration, 'map', []);
}