You are here

public function MigrateAggregatorSettingsTest::testMigration in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/aggregator/src/Tests/Migrate/d7/MigrateAggregatorSettingsTest.php \Drupal\aggregator\Tests\Migrate\d7\MigrateAggregatorSettingsTest::testMigration()

Tests migration of Aggregator variables to configuration.

File

core/modules/aggregator/src/Tests/Migrate/d7/MigrateAggregatorSettingsTest.php, line 33
Contains \Drupal\aggregator\Tests\Migrate\d7\MigrateAggregatorSettingsTest.

Class

MigrateAggregatorSettingsTest
Tests migration of Aggregator's variables to configuration.

Namespace

Drupal\aggregator\Tests\Migrate\d7

Code

public function testMigration() {
  $config = \Drupal::config('aggregator.settings')
    ->get();
  $this
    ->assertIdentical('aggregator', $config['fetcher']);
  $this
    ->assertIdentical('aggregator', $config['parser']);
  $this
    ->assertIdentical([
    'aggregator',
  ], $config['processors']);
  $this
    ->assertIdentical('<p> <div> <a>', $config['items']['allowed_html']);
  $this
    ->assertIdentical(500, $config['items']['teaser_length']);
  $this
    ->assertIdentical(86400, $config['items']['expire']);
  $this
    ->assertIdentical(6, $config['source']['list_max']);
}