You are here

public function MigrateAcquiaSearchConfigurationTest::testSearchIndex in Acquia Search 3.x

Tests that all search index entity bundles gets migrated.

File

tests/src/Kernel/Migrate/d7/MigrateAcquiaSearchConfigurationTest.php, line 66

Class

MigrateAcquiaSearchConfigurationTest
Migrates various configuration objects owned by the acquia search module.

Namespace

Drupal\Tests\acquia_search\Kernel\Migrate\d7

Code

public function testSearchIndex() {
  foreach ($this->expectedIndexBundles as $entityType => $bundle) {
    $path = 'datasource_settings.entity:' . $entityType . '.bundles.selected';
    $actual = \Drupal::config('search_api.index.acquia_search_index')
      ->get($path);
    $this
      ->assertEquals(sort($bundle), sort($actual));
  }
}