public function MigrateSearchSettingsTest::testSearchSettings in Zircon Profile 8
Same name in this branch
- 8 core/modules/search/src/Tests/Migrate/d6/MigrateSearchSettingsTest.php \Drupal\search\Tests\Migrate\d6\MigrateSearchSettingsTest::testSearchSettings()
- 8 core/modules/search/src/Tests/Migrate/d7/MigrateSearchSettingsTest.php \Drupal\search\Tests\Migrate\d7\MigrateSearchSettingsTest::testSearchSettings()
Same name and namespace in other branches
- 8.0 core/modules/search/src/Tests/Migrate/d6/MigrateSearchSettingsTest.php \Drupal\search\Tests\Migrate\d6\MigrateSearchSettingsTest::testSearchSettings()
Tests migration of search variables to search.settings.yml.
File
- core/
modules/ search/ src/ Tests/ Migrate/ d6/ MigrateSearchSettingsTest.php, line 38 - Contains \Drupal\search\Tests\Migrate\d6\MigrateSearchSettingsTest.
Class
- MigrateSearchSettingsTest
- Upgrade variables to search.settings.yml.
Namespace
Drupal\search\Tests\Migrate\d6Code
public function testSearchSettings() {
$config = $this
->config('search.settings');
$this
->assertIdentical(3, $config
->get('index.minimum_word_size'));
$this
->assertIdentical(TRUE, $config
->get('index.overlap_cjk'));
$this
->assertIdentical(100, $config
->get('index.cron_limit'));
$this
->assertIdentical(TRUE, $config
->get('logging'));
$this
->assertConfigSchema(\Drupal::service('config.typed'), 'search.settings', $config
->get());
}