You are here

public function FieldDiscoveryTest::testAddAllFieldProcesses in Drupal 9

Same name in this branch
  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()
Same name and namespace in other branches
  1. 8 core/modules/migrate_drupal/tests/src/Kernel/d6/FieldDiscoveryTest.php \Drupal\Tests\migrate_drupal\Kernel\d6\FieldDiscoveryTest::testAddAllFieldProcesses()

Tests the addAllFieldProcesses method.

@covers ::addAllFieldProcesses

File

core/modules/migrate_drupal/tests/src/Kernel/d6/FieldDiscoveryTest.php, line 86

Class

FieldDiscoveryTest
Tests FieldDiscovery service against Drupal 6.

Namespace

Drupal\Tests\migrate_drupal\Kernel\d6

Code

public function testAddAllFieldProcesses() {
  $expected_process_keys = [
    'field_commander',
    'field_company',
    'field_company_2',
    'field_company_3',
    'field_sync',
    'field_multivalue',
    'field_test_text_single_checkbox',
    'field_reference',
    'field_reference_2',
    'field_test',
    'field_test_date',
    'field_test_datestamp',
    'field_test_datetime',
    'field_test_decimal_radio_buttons',
    'field_test_email',
    'field_test_exclude_unset',
    'field_test_filefield',
    'field_test_float_single_checkbox',
    'field_test_four',
    'field_test_identical1',
    'field_test_identical2',
    'field_test_imagefield',
    'field_test_integer_selectlist',
    'field_test_link',
    'field_test_phone',
    'field_test_string_selectlist',
    'field_test_text_single_checkbox2',
    'field_test_three',
    'field_test_two',
  ];
  $this
    ->assertFieldProcessKeys($this->fieldDiscovery, $this->migrationPluginManager, FieldDiscoveryInterface::DRUPAL_6, $expected_process_keys);
}