function FieldDiscoveryTest::testAddAllFieldProcesses

Same name in this branch
  1. 8.9.x core/modules/migrate_drupal/tests/src/Kernel/d6/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Kernel\d6\FieldDiscoveryTest::testAddAllFieldProcesses()
Same name in other branches
  1. 9 core/modules/migrate_drupal/tests/src/Kernel/d6/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Kernel\d6\FieldDiscoveryTest::testAddAllFieldProcesses()
  2. 9 core/modules/migrate_drupal/tests/src/Kernel/d7/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Kernel\d7\FieldDiscoveryTest::testAddAllFieldProcesses()
  3. 10 core/modules/migrate_drupal/tests/src/Kernel/d6/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Kernel\d6\FieldDiscoveryTest::testAddAllFieldProcesses()
  4. 10 core/modules/migrate_drupal/tests/src/Kernel/d7/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Kernel\d7\FieldDiscoveryTest::testAddAllFieldProcesses()
  5. 11.x core/modules/migrate_drupal/tests/src/Kernel/d6/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Kernel\d6\FieldDiscoveryTest::testAddAllFieldProcesses()
  6. 11.x core/modules/migrate_drupal/tests/src/Kernel/d7/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Kernel\d7\FieldDiscoveryTest::testAddAllFieldProcesses()

Tests the addAllFieldProcesses method.

@covers ::addAllFieldProcesses

File

core/modules/migrate_drupal/tests/src/Kernel/d7/FieldDiscoveryTest.php, line 116

Class

FieldDiscoveryTest
Test FieldDiscovery Service against Drupal 7.

Namespace

Drupal\Tests\migrate_drupal\Kernel\d7

Code

public function testAddAllFieldProcesses() {
    $expected_process_keys = [
        'comment_body',
        'field_integer',
        'body',
        'field_text_plain',
        'field_text_filtered',
        'field_text_plain_filtered',
        'field_text_long_plain',
        'field_text_long_filtered',
        'field_text_long_plain_filtered',
        'field_text_sum_plain',
        'field_text_sum_filtered',
        'field_text_sum_plain_filtered',
        'field_tags',
        'field_image',
        'field_link',
        'field_reference',
        'field_reference_2',
        'taxonomy_forums',
        'field_boolean',
        'field_email',
        'field_phone',
        'field_date',
        'field_date_with_end_time',
        'field_file',
        'field_float',
        'field_images',
        'field_text_list',
        'field_integer_list',
        'field_long_text',
        'field_term_reference',
        'field_text',
        'field_node_entityreference',
        'field_user_entityreference',
        'field_term_entityreference',
        'field_private_file',
        'field_datetime_without_time',
        'field_date_without_time',
        'field_float_list',
        'field_training',
        'field_sector',
        'field_chancellor',
    ];
    $this->assertFieldProcessKeys($this->fieldDiscovery, $this->migrationPluginManager, '7', $expected_process_keys);
}

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