You are here

public function MigrateContactSettingsTest::testContactSettings in Drupal 10

Same name in this branch
  1. 10 core/modules/contact/tests/src/Kernel/Migrate/d6/MigrateContactSettingsTest.php \Drupal\Tests\contact\Kernel\Migrate\d6\MigrateContactSettingsTest::testContactSettings()
  2. 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
  1. 8 core/modules/contact/tests/src/Kernel/Migrate/d7/MigrateContactSettingsTest.php \Drupal\Tests\contact\Kernel\Migrate\d7\MigrateContactSettingsTest::testContactSettings()
  2. 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\d7

Code

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'));
}