You are here

public function MigrateSearchPageTest::testModuleExists in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/search/tests/src/Kernel/Migrate/d7/MigrateSearchPageTest.php \Drupal\Tests\search\Kernel\Migrate\d7\MigrateSearchPageTest::testModuleExists()
  2. 10 core/modules/search/tests/src/Kernel/Migrate/d7/MigrateSearchPageTest.php \Drupal\Tests\search\Kernel\Migrate\d7\MigrateSearchPageTest::testModuleExists()

Tests that search page is only migrated for modules enabled on D8 site.

File

core/modules/search/tests/src/Kernel/Migrate/d7/MigrateSearchPageTest.php, line 85

Class

MigrateSearchPageTest
Tests migration of search page status and settings.

Namespace

Drupal\Tests\search\Kernel\Migrate\d7

Code

public function testModuleExists() {
  $this
    ->installConfig([
    'search',
  ]);
  $this
    ->executeMigration('d7_search_page');
  $this
    ->assertNull(SearchPage::load('node_search'));
  $this
    ->assertEntity('user_search', 'user');
}