MigrateNodeSettingStatusTest.php

Namespace

Drupal\Tests\node\Kernel\Migrate\d6

File

core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeSettingStatusTest.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\node\Kernel\Migrate\d6;

use Drupal\Core\Field\Entity\BaseFieldOverride;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

/**
 * Tests Migrate Node Setting Status.
 */
class MigrateNodeSettingStatusTest extends MigrateDrupal6TestBase {
  
  /**
   * {@inheritdoc}
   */
  protected static $modules = [
    'node',
    'text',
    'menu_ui',
  ];
  
  /**
   * {@inheritdoc}
   */
  protected function setUp() : void {
    parent::setUp();
    $this->installConfig([
      'node',
    ]);
    $this->executeMigration('d6_node_type');
    $this->executeMigration('d6_node_setting_status');
  }
  
  /**
   * Tests migration of the publishing status checkbox's settings.
   */
  public function testMigration() : void {
    $this->assertSame('Publishing status', BaseFieldOverride::load('node.article.status')->label());
  }

}

Classes

Title Deprecated Summary
MigrateNodeSettingStatusTest Tests Migrate Node Setting Status.

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