MigrateNodeSettingsTest.php

Same filename and directory in other branches
  1. 9 core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeSettingsTest.php
  2. 8.9.x core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeSettingsTest.php
  3. 11.x core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeSettingsTest.php

Namespace

Drupal\Tests\node\Kernel\Migrate\d7

File

core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeSettingsTest.php

View source
<?php

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

use Drupal\Tests\SchemaCheckTestTrait;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;

/**
 * Upgrade variables to node.settings config object.
 *
 * @group node
 */
class MigrateNodeSettingsTest extends MigrateDrupal7TestBase {
  use SchemaCheckTestTrait;
  
  /**
   * {@inheritdoc}
   */
  protected static $modules = [
    'node',
  ];
  
  /**
   * {@inheritdoc}
   */
  protected function setUp() : void {
    parent::setUp();
    $this->executeMigration('d7_node_settings');
  }
  
  /**
   * Tests migration of node variables to node.settings config object.
   */
  public function testAggregatorSettings() : void {
    $config = $this->config('node.settings');
    $this->assertEquals(1, $config->get('use_admin_theme'));
  }

}

Classes

Title Deprecated Summary
MigrateNodeSettingsTest Upgrade variables to node.settings config object.

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