public function MigrateSearchPageTest::testModuleExists in Drupal 9
Same name and namespace in other branches
- 8 core/modules/search/tests/src/Kernel/Migrate/d7/MigrateSearchPageTest.php \Drupal\Tests\search\Kernel\Migrate\d7\MigrateSearchPageTest::testModuleExists()
- 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\d7Code
public function testModuleExists() {
$this
->installConfig([
'search',
]);
$this
->executeMigration('d7_search_page');
$this
->assertNull(SearchPage::load('node_search'));
$this
->assertEntity('user_search', 'user');
}