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()
  2. 8.9.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

10 methods override MigrateSourceTestBase::providerSource()
ColorTest::providerSource in core/modules/color/tests/src/Kernel/Plugin/migrate/source/d7/ColorTest.php
The data provider.
EntityTranslationSettingsTest::providerSource in core/modules/content_translation/tests/src/Kernel/Plugin/migrate/source/d7/EntityTranslationSettingsTest.php
The data provider.
FieldInstancePerViewModeTest::providerSource in core/modules/field/tests/src/Kernel/Plugin/migrate/source/d6/FieldInstancePerViewModeTest.php
The data provider.
ImageStylesTest::providerSource in core/modules/image/tests/src/Kernel/Plugin/migrate/source/d7/ImageStylesTest.php
The data provider.
MenuLinkTranslationTest::providerSource in core/modules/menu_link_content/tests/src/Kernel/Plugin/migrate/source/d7/MenuLinkTranslationTest.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.