You are here

MigrateSystemRssTest.php in Zircon Profile 8

Same filename and directory in other branches
  1. 8.0 core/modules/system/src/Tests/Migrate/d6/MigrateSystemRssTest.php

File

core/modules/system/src/Tests/Migrate/d6/MigrateSystemRssTest.php
View source
<?php

/**
 * @file
 * Contains \Drupal\system\Tests\Migrate\d6\MigrateSystemRssTest.
 */
namespace Drupal\system\Tests\Migrate\d6;

use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;

/**
 * Upgrade rss variable to system.*.yml.
 *
 * @group migrate_drupal_6
 */
class MigrateSystemRssTest extends MigrateDrupal6TestBase {

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

  /**
   * Tests migration of system (rss) variables to system.rss.yml.
   */
  public function testSystemRss() {
    $config = $this
      ->config('system.rss');
    $this
      ->assertIdentical(10, $config
      ->get('items.limit'));
    $this
      ->assertIdentical('title', $config
      ->get('items.view_mode'));
  }

}

Classes

Namesort descending Description
MigrateSystemRssTest Upgrade rss variable to system.*.yml.