function MigrateContactSettingsTest::testContactSettings
Same name in this branch
- 9 core/modules/contact/tests/src/Kernel/Migrate/d6/MigrateContactSettingsTest.php \Drupal\Tests\contact\Kernel\Migrate\d6\MigrateContactSettingsTest::testContactSettings()
Same name in other branches
- 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()
- 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()
- 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 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'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.