3 namespace Drupal\Tests\aggregator\Kernel\Migrate\d6;
5 use Drupal\Tests\SchemaCheckTestTrait;
6 use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
9 * Upgrade variables to aggregator.settings.yml.
11 * @group migrate_drupal_6
13 class MigrateAggregatorConfigsTest extends MigrateDrupal6TestBase {
15 use SchemaCheckTestTrait;
20 public static $modules = ['aggregator'];
25 protected function setUp() {
27 $this->executeMigration('d6_aggregator_settings');
31 * Tests migration of aggregator variables to aggregator.settings.yml.
33 public function testAggregatorSettings() {
34 $config = $this->config('aggregator.settings');
35 $this->assertIdentical('aggregator', $config->get('fetcher'));
36 $this->assertIdentical('aggregator', $config->get('parser'));
37 $this->assertIdentical(['aggregator'], $config->get('processors'));
38 $this->assertIdentical(600, $config->get('items.teaser_length'));
39 $this->assertIdentical('<a> <b> <br /> <dd> <dl> <dt> <em> <i> <li> <ol> <p> <strong> <u> <ul>', $config->get('items.allowed_html'));
40 $this->assertIdentical(9676800, $config->get('items.expire'));
41 $this->assertIdentical(3, $config->get('source.list_max'));
42 $this->assertConfigSchema(\Drupal::service('config.typed'), 'aggregator.settings', $config->get());