function MigrateAggregatorConfigsTest::testAggregatorSettings

Same name and namespace in other branches
  1. 9 core/modules/aggregator/tests/src/Kernel/Migrate/d6/MigrateAggregatorConfigsTest.php \Drupal\Tests\aggregator\Kernel\Migrate\d6\MigrateAggregatorConfigsTest::testAggregatorSettings()

Tests migration of aggregator variables to aggregator.settings.yml.

File

core/modules/aggregator/tests/src/Kernel/Migrate/d6/MigrateAggregatorConfigsTest.php, line 33

Class

MigrateAggregatorConfigsTest
Upgrade variables to <a href="/api/drupal/core%21modules%21aggregator%21config%21install%21aggregator.settings.yml/8.9.x" title="core/modules/aggregator/config/install/aggregator.settings.yml" class="local">aggregator.settings.yml</a>.

Namespace

Drupal\Tests\aggregator\Kernel\Migrate\d6

Code

public function testAggregatorSettings() {
    $config = $this->config('aggregator.settings');
    $this->assertIdentical('aggregator', $config->get('fetcher'));
    $this->assertIdentical('aggregator', $config->get('parser'));
    $this->assertIdentical([
        'aggregator',
    ], $config->get('processors'));
    $this->assertIdentical(600, $config->get('items.teaser_length'));
    $this->assertIdentical('<a> <b> <br /> <dd> <dl> <dt> <em> <i> <li> <ol> <p> <strong> <u> <ul>', $config->get('items.allowed_html'));
    $this->assertIdentical(9676800, $config->get('items.expire'));
    $this->assertIdentical(3, $config->get('source.list_max'));
    $this->assertConfigSchema(\Drupal::service('config.typed'), 'aggregator.settings', $config->get());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.