function MigrateSearchPageTest::testModuleExists
Same name in other branches
- 8.9.x 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()
- 11.x 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 100
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');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.