MigrateContactSettingsTest.php
Same filename in this branch
Same filename in other branches
- 9 core/modules/contact/tests/src/Kernel/Migrate/d6/MigrateContactSettingsTest.php
- 9 core/modules/contact/tests/src/Kernel/Migrate/d7/MigrateContactSettingsTest.php
- 8.9.x core/modules/contact/tests/src/Kernel/Migrate/d6/MigrateContactSettingsTest.php
- 8.9.x core/modules/contact/tests/src/Kernel/Migrate/d7/MigrateContactSettingsTest.php
- 11.x core/modules/contact/tests/src/Kernel/Migrate/d6/MigrateContactSettingsTest.php
- 11.x core/modules/contact/tests/src/Kernel/Migrate/d7/MigrateContactSettingsTest.php
Namespace
Drupal\Tests\contact\Kernel\Migrate\d6File
-
core/
modules/ contact/ tests/ src/ Kernel/ Migrate/ d6/ MigrateContactSettingsTest.php
View source
<?php
declare (strict_types=1);
namespace Drupal\Tests\contact\Kernel\Migrate\d6;
use Drupal\Tests\SchemaCheckTestTrait;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
/**
* Upgrade variables to contact.settings.yml.
*
* @group migrate_drupal_6
*/
class MigrateContactSettingsTest extends MigrateDrupal6TestBase {
use SchemaCheckTestTrait;
/**
* {@inheritdoc}
*/
protected static $modules = [
'contact',
];
/**
* {@inheritdoc}
*/
protected function setUp() : void {
parent::setUp();
$this->executeMigrations([
'contact_category',
'd6_contact_settings',
]);
}
/**
* Tests migration of contact variables to contact.settings.yml.
*/
public function testContactSettings() : void {
$config = $this->config('contact.settings');
$this->assertTrue($config->get('user_default_enabled'));
$this->assertSame(3, $config->get('flood.limit'));
$this->assertSame('some_other_category', $config->get('default_form'));
$this->assertConfigSchema(\Drupal::service('config.typed'), 'contact.settings', $config->get());
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
MigrateContactSettingsTest | Upgrade variables to contact.settings.yml. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.