function MigrateSearchSettingsTest::testSearchSettings

Same name in this branch
  1. 11.x core/modules/search/tests/src/Kernel/Migrate/d7/MigrateSearchSettingsTest.php \Drupal\Tests\search\Kernel\Migrate\d7\MigrateSearchSettingsTest::testSearchSettings()
Same name in other branches
  1. 9 core/modules/search/tests/src/Kernel/Migrate/d6/MigrateSearchSettingsTest.php \Drupal\Tests\search\Kernel\Migrate\d6\MigrateSearchSettingsTest::testSearchSettings()
  2. 9 core/modules/search/tests/src/Kernel/Migrate/d7/MigrateSearchSettingsTest.php \Drupal\Tests\search\Kernel\Migrate\d7\MigrateSearchSettingsTest::testSearchSettings()
  3. 8.9.x core/modules/search/tests/src/Kernel/Migrate/d6/MigrateSearchSettingsTest.php \Drupal\Tests\search\Kernel\Migrate\d6\MigrateSearchSettingsTest::testSearchSettings()
  4. 8.9.x core/modules/search/tests/src/Kernel/Migrate/d7/MigrateSearchSettingsTest.php \Drupal\Tests\search\Kernel\Migrate\d7\MigrateSearchSettingsTest::testSearchSettings()
  5. 10 core/modules/search/tests/src/Kernel/Migrate/d6/MigrateSearchSettingsTest.php \Drupal\Tests\search\Kernel\Migrate\d6\MigrateSearchSettingsTest::testSearchSettings()
  6. 10 core/modules/search/tests/src/Kernel/Migrate/d7/MigrateSearchSettingsTest.php \Drupal\Tests\search\Kernel\Migrate\d7\MigrateSearchSettingsTest::testSearchSettings()

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

File

core/modules/search/tests/src/Kernel/Migrate/d6/MigrateSearchSettingsTest.php, line 36

Class

MigrateSearchSettingsTest
Upgrade variables to search.settings.yml.

Namespace

Drupal\Tests\search\Kernel\Migrate\d6

Code

public function testSearchSettings() : void {
    $config = $this->config('search.settings');
    $this->assertSame(3, $config->get('index.minimum_word_size'));
    $this->assertTrue($config->get('index.overlap_cjk'));
    $this->assertSame(100, $config->get('index.cron_limit'));
    $this->assertTrue($config->get('logging'));
    $this->assertConfigSchema(\Drupal::service('config.typed'), 'search.settings', $config->get());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.