function MigrateSourceTestBase::providerSource

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

30 methods override MigrateSourceTestBase::providerSource()
ConfigTest::providerSource in core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/d8/ConfigTest.php
The data provider.
EntityTranslationSettingsTest::providerSource in core/modules/content_translation/tests/src/Kernel/Plugin/migrate/source/d7/EntityTranslationSettingsTest.php
The data provider.
FieldInstanceLabelDescriptionTranslationTest::providerSource in core/modules/field/tests/src/Kernel/Plugin/migrate/source/d7/FieldInstanceLabelDescriptionTranslationTest.php
The data provider.
FieldInstanceLabelDescriptionTranslationTest::providerSource in core/modules/field/tests/src/Kernel/Plugin/migrate/source/d6/FieldInstanceLabelDescriptionTranslationTest.php
The data provider.
FieldInstancePerFormDisplayTest::providerSource in core/modules/field/tests/src/Kernel/Plugin/migrate/source/d6/FieldInstancePerFormDisplayTest.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

abstract public function providerSource();

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