You are here

public function CallbackTest::testCallbackExceptions in Drupal 8

Same name and namespace in other branches
  1. 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\process

Code

public function testCallbackExceptions($message, $configuration) {
  $this
    ->expectException(\InvalidArgumentException::class);
  $this
    ->expectExceptionMessage($message);
  $this->plugin = new Callback($configuration, 'map', []);
}