MigrateContactSettingsTest.php in Drupal 9
File
core/modules/contact/tests/src/Kernel/Migrate/d7/MigrateContactSettingsTest.php
View source
<?php
namespace Drupal\Tests\contact\Kernel\Migrate\d7;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
class MigrateContactSettingsTest extends MigrateDrupal7TestBase {
protected static $modules = [
'contact',
];
protected function setUp() : void {
parent::setUp();
$this
->executeMigration('contact_category');
$this
->executeMigration('d7_contact_settings');
}
public function testContactSettings() {
$config = $this
->config('contact.settings');
$this
->assertTrue($config
->get('user_default_enabled'));
$this
->assertSame(33, $config
->get('flood.limit'));
$this
->assertEquals('website_testing', $config
->get('default_form'));
}
}