class MigrateAggregatorSettingsTest
Tests migration of Aggregator's variables to configuration.
@group aggregator @group legacy
Hierarchy
- class \Drupal\KernelTests\KernelTestBase extends \Drupal\Core\DependencyInjection\ServiceProviderInterface uses \Drupal\KernelTests\AssertLegacyTrait, \Drupal\KernelTests\AssertContentTrait, \Drupal\Tests\RandomGeneratorTrait, \Drupal\Tests\ConfigTestTrait, \Drupal\Tests\ExtensionListTestTrait, \Drupal\Tests\TestRequirementsTrait, \Drupal\Tests\Traits\PhpUnitWarnings, \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait implements \PHPUnit\Framework\TestCase
- class \Drupal\Tests\migrate\Kernel\MigrateTestBase extends \Drupal\migrate\MigrateMessageInterface implements \Drupal\KernelTests\KernelTestBase
- class \Drupal\Tests\migrate_drupal\Kernel\MigrateDrupalTestBase implements \Drupal\Tests\migrate\Kernel\MigrateTestBase
- class \Drupal\Tests\aggregator\Kernel\Migrate\d7\MigrateDrupal7TestBase uses \Drupal\Tests\migrate_drupal\Traits\NodeMigrateTypeTestTrait implements \Drupal\Tests\migrate_drupal\Kernel\MigrateDrupalTestBase
- class \Drupal\Tests\aggregator\Kernel\Migrate\d7\MigrateAggregatorSettingsTest implements \Drupal\Tests\aggregator\Kernel\Migrate\d7\MigrateDrupal7TestBase
- class \Drupal\Tests\aggregator\Kernel\Migrate\d7\MigrateDrupal7TestBase uses \Drupal\Tests\migrate_drupal\Traits\NodeMigrateTypeTestTrait implements \Drupal\Tests\migrate_drupal\Kernel\MigrateDrupalTestBase
- class \Drupal\Tests\migrate_drupal\Kernel\MigrateDrupalTestBase implements \Drupal\Tests\migrate\Kernel\MigrateTestBase
- class \Drupal\Tests\migrate\Kernel\MigrateTestBase extends \Drupal\migrate\MigrateMessageInterface implements \Drupal\KernelTests\KernelTestBase
Expanded class hierarchy of MigrateAggregatorSettingsTest
File
-
core/
modules/ aggregator/ tests/ src/ Kernel/ Migrate/ d7/ MigrateAggregatorSettingsTest.php, line 11
Namespace
Drupal\Tests\aggregator\Kernel\Migrate\d7View source
class MigrateAggregatorSettingsTest extends MigrateDrupal7TestBase {
/**
* {@inheritdoc}
*/
protected function setUp() : void {
parent::setUp();
$this->installConfig(static::$modules);
$this->executeMigration('d7_aggregator_settings');
}
/**
* Tests migration of Aggregator variables to configuration.
*/
public function testMigration() {
$config = \Drupal::config('aggregator.settings')->get();
$this->assertSame('aggregator', $config['fetcher']);
$this->assertSame('aggregator', $config['parser']);
$this->assertSame([
'aggregator',
], $config['processors']);
$this->assertSame('<p> <div> <a>', $config['items']['allowed_html']);
$this->assertSame(500, $config['items']['teaser_length']);
$this->assertSame(86400, $config['items']['expire']);
$this->assertSame(6, $config['source']['list_max']);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.