You are here

public function MigrateContactSettingsTest::testContactSettings in Zircon Profile 8

Same name in this branch
  1. 8 core/modules/contact/src/Tests/Migrate/d6/MigrateContactSettingsTest.php \Drupal\contact\Tests\Migrate\d6\MigrateContactSettingsTest::testContactSettings()
  2. 8 core/modules/contact/src/Tests/Migrate/d7/MigrateContactSettingsTest.php \Drupal\contact\Tests\Migrate\d7\MigrateContactSettingsTest::testContactSettings()
Same name and namespace in other branches
  1. 8.0 core/modules/contact/src/Tests/Migrate/d6/MigrateContactSettingsTest.php \Drupal\contact\Tests\Migrate\d6\MigrateContactSettingsTest::testContactSettings()

Tests migration of contact variables to contact.settings.yml.

File

core/modules/contact/src/Tests/Migrate/d6/MigrateContactSettingsTest.php, line 38
Contains \Drupal\contact\Tests\Migrate\d6\MigrateContactSettingsTest.

Class

MigrateContactSettingsTest
Upgrade variables to contact.settings.yml.

Namespace

Drupal\contact\Tests\Migrate\d6

Code

public function testContactSettings() {
  $config = $this
    ->config('contact.settings');
  $this
    ->assertIdentical(true, $config
    ->get('user_default_enabled'));
  $this
    ->assertIdentical(3, $config
    ->get('flood.limit'));
  $this
    ->assertIdentical('some_other_category', $config
    ->get('default_form'));
  $this
    ->assertConfigSchema(\Drupal::service('config.typed'), 'contact.settings', $config
    ->get());
}