function Upgrade6Test::assertFollowUpMigrationResults
Tests that follow-up migrations have been run successfully.
@internal
1 call to Upgrade6Test::assertFollowUpMigrationResults()
- Upgrade6Test::testUpgradeAndIncremental in core/
modules/ migrate_drupal_ui/ tests/ src/ Functional/ d6/ Upgrade6Test.php  - Executes all steps of migrations upgrade.
 
File
- 
              core/
modules/ migrate_drupal_ui/ tests/ src/ Functional/ d6/ Upgrade6Test.php, line 219  
Class
- Upgrade6Test
 - Tests Drupal 6 upgrade using the migrate UI.
 
Namespace
Drupal\Tests\migrate_drupal_ui\Functional\d6Code
protected function assertFollowUpMigrationResults() : void {
  $node = Node::load(10);
  $this->assertSame('12', $node->get('field_reference')->target_id);
  $this->assertSame('12', $node->get('field_reference_2')->target_id);
  $translation = $node->getTranslation('fr');
  $this->assertSame('12', $translation->get('field_reference')->target_id);
  $this->assertSame('12', $translation->get('field_reference_2')->target_id);
  $node = Node::load(12)->getTranslation('en');
  $this->assertSame('10', $node->get('field_reference')->target_id);
  $this->assertSame('10', $node->get('field_reference_2')->target_id);
  $translation = $node->getTranslation('fr');
  $this->assertSame('10', $translation->get('field_reference')->target_id);
  $this->assertSame('10', $translation->get('field_reference_2')->target_id);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.