You are here

MigrateActionConfigsTest.php in Drupal 9

File

core/modules/action/tests/src/Kernel/Migrate/d7/MigrateActionConfigsTest.php
View source
<?php

namespace Drupal\Tests\action\Kernel\Migrate\d7;

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

/**
 * Upgrade variables to null.
 *
 * @group migrate_drupal_7
 */
class MigrateActionConfigsTest extends MigrateDrupal7TestBase {
  use SchemaCheckTestTrait;

  /**
   * {@inheritdoc}
   */
  protected static $modules = [
    'action',
  ];

  /**
   * {@inheritdoc}
   */
  protected function setUp() : void {
    parent::setUp();
    $this
      ->executeMigration('action_settings');
  }

  /**
   * Tests migration of action variables to null.
   */
  public function testActionSettings() {
    $config = $this
      ->config('action.settings');
    $this
      ->assertTrue($config
      ->isNew());
  }

}

Classes

Namesort descending Description
MigrateActionConfigsTest Upgrade variables to null.