function MigrateContactSettingsTest::testContactSettings

Same name in this branch
  1. 11.x core/modules/contact/tests/src/Kernel/Migrate/d6/MigrateContactSettingsTest.php \Drupal\Tests\contact\Kernel\Migrate\d6\MigrateContactSettingsTest::testContactSettings()
Same name in other branches
  1. 9 core/modules/contact/tests/src/Kernel/Migrate/d6/MigrateContactSettingsTest.php \Drupal\Tests\contact\Kernel\Migrate\d6\MigrateContactSettingsTest::testContactSettings()
  2. 9 core/modules/contact/tests/src/Kernel/Migrate/d7/MigrateContactSettingsTest.php \Drupal\Tests\contact\Kernel\Migrate\d7\MigrateContactSettingsTest::testContactSettings()
  3. 8.9.x core/modules/contact/tests/src/Kernel/Migrate/d6/MigrateContactSettingsTest.php \Drupal\Tests\contact\Kernel\Migrate\d6\MigrateContactSettingsTest::testContactSettings()
  4. 8.9.x core/modules/contact/tests/src/Kernel/Migrate/d7/MigrateContactSettingsTest.php \Drupal\Tests\contact\Kernel\Migrate\d7\MigrateContactSettingsTest::testContactSettings()
  5. 10 core/modules/contact/tests/src/Kernel/Migrate/d6/MigrateContactSettingsTest.php \Drupal\Tests\contact\Kernel\Migrate\d6\MigrateContactSettingsTest::testContactSettings()
  6. 10 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\d7

Code

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.