public function MigrateContactSettingsTest::testContactSettings in Drupal 10
Same name in this branch
- 10 core/modules/contact/tests/src/Kernel/Migrate/d6/MigrateContactSettingsTest.php \Drupal\Tests\contact\Kernel\Migrate\d6\MigrateContactSettingsTest::testContactSettings()
- 10 core/modules/contact/tests/src/Kernel/Migrate/d7/MigrateContactSettingsTest.php \Drupal\Tests\contact\Kernel\Migrate\d7\MigrateContactSettingsTest::testContactSettings()
Same name and namespace in other branches
- 8 core/modules/contact/tests/src/Kernel/Migrate/d7/MigrateContactSettingsTest.php \Drupal\Tests\contact\Kernel\Migrate\d7\MigrateContactSettingsTest::testContactSettings()
- 9 core/modules/contact/tests/src/Kernel/Migrate/d7/MigrateContactSettingsTest.php \Drupal\Tests\contact\Kernel\Migrate\d7\MigrateContactSettingsTest::testContactSettings()
Tests migration of Contact's variables to configuration.
File
- core/
modules/ contact/ tests/ src/ Kernel/ Migrate/ d7/ MigrateContactSettingsTest.php, line 31
Class
- MigrateContactSettingsTest
- Tests migration of Contact settings to configuration.
Namespace
Drupal\Tests\contact\Kernel\Migrate\d7Code
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'));
}