MigrateAggregatorSettingsTest.php in Zircon Profile 8
File
core/modules/aggregator/src/Tests/Migrate/d7/MigrateAggregatorSettingsTest.php
View source
<?php
namespace Drupal\aggregator\Tests\Migrate\d7;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
class MigrateAggregatorSettingsTest extends MigrateDrupal7TestBase {
public static $modules = [
'aggregator',
];
protected function setUp() {
parent::setUp();
$this
->installConfig(static::$modules);
$this
->executeMigration('d7_aggregator_settings');
}
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']);
}
}