Version 1
[yaffs-website] / web / core / modules / tracker / tests / src / Kernel / Migrate / d7 / MigrateTrackerSettingsTest.php
1 <?php
2
3 namespace Drupal\Tests\tracker\Kernel\Migrate\d7;
4
5 use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
6
7 /**
8  * Tests migration of Tracker settings to configuration.
9  *
10  * @group tracker
11  */
12 class MigrateTrackerSettingsTest extends MigrateDrupal7TestBase {
13
14   public static $modules = ['tracker'];
15
16   /**
17    * {@inheritdoc}
18    */
19   protected function setUp() {
20     parent::setUp();
21     $this->installConfig(['tracker']);
22     $this->executeMigration('d7_tracker_settings');
23   }
24
25   /**
26    * Tests migration of tracker's variables to configuration.
27    */
28   public function testMigration() {
29     $this->assertIdentical(999, \Drupal::config('tracker.settings')->get('cron_index_limit'));
30   }
31
32 }