MigrateSearchSettingsTest.php in Drupal 10
File
core/modules/search/tests/src/Kernel/Migrate/d6/MigrateSearchSettingsTest.php
View source
<?php
namespace Drupal\Tests\search\Kernel\Migrate\d6;
use Drupal\Tests\SchemaCheckTestTrait;
use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
class MigrateSearchSettingsTest extends MigrateDrupal6TestBase {
use SchemaCheckTestTrait;
protected static $modules = [
'search',
];
protected function setUp() : void {
parent::setUp();
$this
->executeMigration('d6_search_settings');
}
public function testSearchSettings() {
$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());
}
}