function CallbackTest::providerCallbackExceptions

Data provider for ::testCallbackExceptions().

File

core/modules/migrate/tests/src/Unit/process/CallbackTest.php, line 50

Class

CallbackTest
Tests the callback process plugin.

Namespace

Drupal\Tests\migrate\Unit\process

Code

public function providerCallbackExceptions() {
  return [
    'not set' => [
      'message' => 'The "callable" must be set.',
      'configuration' => [],
    ],
    'invalid method' => [
      'message' => 'The "callable" must be a valid function or method.',
      'configuration' => [
        'callable' => 'nonexistent_callable',
      ],
    ],
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.