function MigrateNodeDeriverTest::testNoTranslations

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

Tests node translation migrations with translation disabled.

File

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

Class

MigrateNodeDeriverTest
Test D7NodeDeriver.

Namespace

Drupal\Tests\node\Kernel\Migrate\d7

Code

public function testNoTranslations() : void {
    // Without content_translation, there should be no translation migrations.
    $migrations = $this->container
        ->get('plugin.manager.migration')
        ->createInstances('d7_node_translation');
    $this->assertEmpty($migrations);
}

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