You are here

public function MigrateNodeDeriverTest::testBuilder in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeDeriverTest.php \Drupal\Tests\node\Kernel\Migrate\d7\MigrateNodeDeriverTest::testBuilder()
  2. 9 core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeDeriverTest.php \Drupal\Tests\node\Kernel\Migrate\d7\MigrateNodeDeriverTest::testBuilder()

Tests the d7_node node driver.

@group node

File

core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeDeriverTest.php, line 43

Class

MigrateNodeDeriverTest
Test D7NodeDeriver.

Namespace

Drupal\Tests\node\Kernel\Migrate\d7

Code

public function testBuilder() {
  $process = $this
    ->getMigration('d7_node:test_content_type')
    ->getProcess();
  $this
    ->assertSame('field_boolean', $process['field_boolean'][0]['source']);
  $this
    ->assertSame('field_email', $process['field_email'][0]['source']);
  $this
    ->assertSame('field_phone', $process['field_phone'][0]['source']);
  $this
    ->assertSame('field_date', $process['field_date'][0]['source']);
  $this
    ->assertSame('field_date_with_end_time', $process['field_date_with_end_time'][0]['source']);
  $this
    ->assertSame('field_file', $process['field_file'][0]['source']);
  $this
    ->assertSame('field_float', $process['field_float'][0]['source']);
  $this
    ->assertSame('field_images', $process['field_images'][0]['source']);
  $this
    ->assertSame('field_integer', $process['field_integer'][0]['source']);
  $this
    ->assertSame('field_link', $process['field_link'][0]['source']);
  $this
    ->assertSame('field_text_list', $process['field_text_list'][0]['source']);
  $this
    ->assertSame('field_integer_list', $process['field_integer_list'][0]['source']);
  $this
    ->assertSame('field_long_text', $process['field_long_text'][0]['source']);
  $this
    ->assertSame('field_term_reference', $process['field_term_reference'][0]['source']);
  $this
    ->assertSame('field_text', $process['field_text'][0]['source']);
}