public function MigrateAggregatorConfigsTest::testAggregatorSettings in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/aggregator/src/Tests/Migrate/d6/MigrateAggregatorConfigsTest.php \Drupal\aggregator\Tests\Migrate\d6\MigrateAggregatorConfigsTest::testAggregatorSettings()
Tests migration of aggregator variables to aggregator.settings.yml.
File
- core/
modules/ aggregator/ src/ Tests/ Migrate/ d6/ MigrateAggregatorConfigsTest.php, line 38 - Contains \Drupal\aggregator\Tests\Migrate\d6\MigrateAggregatorConfigsTest.
Class
- MigrateAggregatorConfigsTest
- Upgrade variables to aggregator.settings.yml.
Namespace
Drupal\aggregator\Tests\Migrate\d6Code
public function testAggregatorSettings() {
$config = $this
->config('aggregator.settings');
$this
->assertIdentical('aggregator', $config
->get('fetcher'));
$this
->assertIdentical('aggregator', $config
->get('parser'));
$this
->assertIdentical(array(
'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());
}