function MigrateContactSettingsTest::testContactSettings
Same name in this branch
- 10 core/modules/contact/tests/src/Kernel/Migrate/d6/MigrateContactSettingsTest.php \Drupal\Tests\contact\Kernel\Migrate\d6\MigrateContactSettingsTest::testContactSettings()
Same name in other branches
- 9 core/modules/contact/tests/src/Kernel/Migrate/d6/MigrateContactSettingsTest.php \Drupal\Tests\contact\Kernel\Migrate\d6\MigrateContactSettingsTest::testContactSettings()
- 9 core/modules/contact/tests/src/Kernel/Migrate/d7/MigrateContactSettingsTest.php \Drupal\Tests\contact\Kernel\Migrate\d7\MigrateContactSettingsTest::testContactSettings()
- 8.9.x core/modules/contact/tests/src/Kernel/Migrate/d6/MigrateContactSettingsTest.php \Drupal\Tests\contact\Kernel\Migrate\d6\MigrateContactSettingsTest::testContactSettings()
- 8.9.x core/modules/contact/tests/src/Kernel/Migrate/d7/MigrateContactSettingsTest.php \Drupal\Tests\contact\Kernel\Migrate\d7\MigrateContactSettingsTest::testContactSettings()
- 11.x core/modules/contact/tests/src/Kernel/Migrate/d6/MigrateContactSettingsTest.php \Drupal\Tests\contact\Kernel\Migrate\d6\MigrateContactSettingsTest::testContactSettings()
- 11.x 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 33
Class
- MigrateContactSettingsTest
- Tests migration of Contact settings to configuration.
Namespace
Drupal\Tests\contact\Kernel\Migrate\d7Code
public function testContactSettings() : void {
$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'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.