aggregator-2.x-dev/tests/src/Kernel/Migrate/d7/MigrateAggregatorFilterFormatTest.php

tests/src/Kernel/Migrate/d7/MigrateAggregatorFilterFormatTest.php
<?php

namespace Drupal\Tests\aggregator\Kernel\Migrate\d7;

/**
 * Upgrade variables to filter.format.aggregator_html.yml.
 *
 * @group aggregator
 */
class MigrateAggregatorFilterFormatTest extends MigrateDrupal7TestBase {

  /**
   * {@inheritdoc}
   */
  protected function setUp(): void {
    parent::setUp();
    $this->installConfig(static::$modules);
    $this->executeMigration('d7_aggregator_filter_format');
  }

  /**
   * Tests migration of Aggregator variables to configuration.
   */
  public function testMigration() {
    $config = $this->config('filter.format.aggregator_html');
    $this->assertSame('<p> <div> <a>', $config->get('filters.filter_html.settings.allowed_html'));
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc