class MigrateNodeSettingsTest

Same name and namespace in other branches
  1. 11.x core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeSettingsTest.php \Drupal\Tests\node\Kernel\Migrate\d7\MigrateNodeSettingsTest

Upgrade variables to node.settings config object.

@group node

Hierarchy

Expanded class hierarchy of MigrateNodeSettingsTest

File

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

Namespace

Drupal\Tests\node\Kernel\Migrate\d7
View source
class MigrateNodeSettingsTest extends MigrateDrupal7TestBase {
  use SchemaCheckTestTrait;
  
  /**
   * Modules to enable.
   *
   * @var array
   */
  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() {
    $config = $this->config('node.settings');
    $this->assertEquals(1, $config->get('use_admin_theme'));
  }

}

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