You are here

abstract public function MigrateSourceTestBase::providerSource in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate/tests/src/Kernel/MigrateSourceTestBase.php \Drupal\Tests\migrate\Kernel\MigrateSourceTestBase::providerSource()
  2. 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

99 methods override MigrateSourceTestBase::providerSource()
ActionTest::providerSource in core/modules/system/tests/src/Kernel/Plugin/migrate/source/ActionTest.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.
BlockedIpsTest::providerSource in core/modules/ban/tests/src/Kernel/Plugin/migrate/source/d7/BlockedIpsTest.php
The data provider.
BlockTest::providerSource in core/modules/block/tests/src/Kernel/Plugin/migrate/source/BlockTest.php
The data provider.

... See full list

File

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

Class

MigrateSourceTestBase
Base class for tests of Migrate source plugins.

Namespace

Drupal\Tests\migrate\Kernel

Code

public abstract function providerSource();