MigrateTrackerSettingsTest.php

Same filename and directory in other branches
  1. 9 core/modules/tracker/tests/src/Kernel/Migrate/d7/MigrateTrackerSettingsTest.php
  2. 8.9.x core/modules/tracker/tests/src/Kernel/Migrate/d7/MigrateTrackerSettingsTest.php
  3. 10 core/modules/tracker/tests/src/Kernel/Migrate/d7/MigrateTrackerSettingsTest.php

Namespace

Drupal\Tests\tracker\Kernel\Migrate\d7

File

core/modules/tracker/tests/src/Kernel/Migrate/d7/MigrateTrackerSettingsTest.php

View source
<?php

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


/**
 * Tests migration of Tracker settings to configuration.
 *
 * @group tracker
 * @group legacy
 */
class MigrateTrackerSettingsTest extends MigrateDrupalTestBase {
    protected static $modules = [
        'tracker',
    ];
    
    /**
     * {@inheritdoc}
     */
    protected function setUp() : void {
        parent::setUp();
        $this->installConfig([
            'tracker',
        ]);
        $this->executeMigration('d7_tracker_settings');
    }
    
    /**
     * Tests migration of tracker's variables to configuration.
     */
    public function testMigration() {
        $this->assertSame(999, \Drupal::config('tracker.settings')->get('cron_index_limit'));
    }

}

Classes

Title Deprecated Summary
MigrateTrackerSettingsTest Tests migration of Tracker settings to configuration.

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