function FieldInstanceOptionTranslationTest::providerSource

Same name in other branches
  1. 9 core/modules/field/tests/src/Kernel/Plugin/migrate/source/d6/FieldInstanceOptionTranslationTest.php \Drupal\Tests\field\Kernel\Plugin\migrate\source\d6\FieldInstanceOptionTranslationTest::providerSource()
  2. 8.9.x core/modules/field/tests/src/Kernel/Plugin/migrate/source/d6/FieldInstanceOptionTranslationTest.php \Drupal\Tests\field\Kernel\Plugin\migrate\source\d6\FieldInstanceOptionTranslationTest::providerSource()
  3. 11.x core/modules/field/tests/src/Kernel/Plugin/migrate/source/d6/FieldInstanceOptionTranslationTest.php \Drupal\Tests\field\Kernel\Plugin\migrate\source\d6\FieldInstanceOptionTranslationTest::providerSource()

Overrides FieldOptionTranslationTest::providerSource

File

core/modules/field/tests/src/Kernel/Plugin/migrate/source/d6/FieldInstanceOptionTranslationTest.php, line 23

Class

FieldInstanceOptionTranslationTest
Tests the field instance option translation source plugin.

Namespace

Drupal\Tests\field\Kernel\Plugin\migrate\source\d6

Code

public static function providerSource() {
    $test = parent::providerSource();
    // FieldInstanceOptionTranslation extends FieldOptionTranslation so the
    // same test can be used with the addition of the 'type' field to the
    // output.
    $test[0]['expected_data'][0]['type'] = 'text';
    $test[0]['expected_data'][1]['type'] = 'text';
    $test[0]['expected_data'][2]['type'] = 'number_integer';
    $test[0]['expected_data'][3]['type'] = 'number_integer';
    return $test;
}

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