function MigrateNodeSettingPromoteTest::testMigration

Same name and namespace in other branches
  1. 11.x core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeSettingPromoteTest.php \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeSettingPromoteTest::testMigration()
  2. 10 core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeSettingPromoteTest.php \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeSettingPromoteTest::testMigration()
  3. 9 core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeSettingPromoteTest.php \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeSettingPromoteTest::testMigration()
  4. 8.9.x core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeSettingPromoteTest.php \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeSettingPromoteTest::testMigration()

Tests migration of the promote checkbox's settings.

File

core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeSettingPromoteTest.php, line 37

Class

MigrateNodeSettingPromoteTest
Tests Migrate Node Setting Promote.

Namespace

Drupal\Tests\node\Kernel\Migrate\d6

Code

public function testMigration() : void {
  $this->assertSame('Promoted to front page', BaseFieldOverride::load('node.article.promote')->label());
}

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