function MigrateSourceTestBase::providerSource

Same name in other branches
  1. 9 core/modules/migrate/tests/src/Kernel/MigrateSourceTestBase.php \Drupal\Tests\migrate\Kernel\MigrateSourceTestBase::providerSource()

The data provider.

Return value

array Array of data sets to test, each of which is a numerically indexed array with the following elements:

  • An array of source data, which can be optionally processed and set up by subclasses.
  • An array of expected result rows.
  • (optional) The number of result rows the plugin under test is expected to return. If this is not a numeric value, the plugin will not be counted.
  • (optional) Array of configuration options for the plugin under test.

See also

\Drupal\Tests\migrate\Kernel\MigrateSourceTestBase::testSource

102 methods override MigrateSourceTestBase::providerSource()
ActionTest::providerSource in core/modules/action/tests/src/Kernel/Plugin/migrate/source/ActionTest.php
The data provider.
AggregatorFeedTest::providerSource in core/modules/aggregator/tests/src/Kernel/Plugin/migrate/source/AggregatorFeedTest.php
The data provider.
AggregatorItemTest::providerSource in core/modules/aggregator/tests/src/Kernel/Plugin/migrate/source/AggregatorItemTest.php
The data provider.
BlockCustomTest::providerSource in core/modules/block_content/tests/src/Kernel/Plugin/migrate/source/d7/BlockCustomTest.php
The data provider.
BlockCustomTranslationTest::providerSource in core/modules/block_content/tests/src/Kernel/Plugin/migrate/source/d7/BlockCustomTranslationTest.php
The data provider.

... See full list

File

core/modules/migrate/tests/src/Kernel/MigrateSourceTestBase.php, line 50

Class

MigrateSourceTestBase
Base class for tests of Migrate source plugins.

Namespace

Drupal\Tests\migrate\Kernel

Code

public abstract function providerSource();

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