function MigrateSearchPageTest::testModuleExists
Same name in other branches
- 9 core/modules/search/tests/src/Kernel/Migrate/d7/MigrateSearchPageTest.php \Drupal\Tests\search\Kernel\Migrate\d7\MigrateSearchPageTest::testModuleExists()
- 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()
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 102
Class
- MigrateSearchPageTest
- Tests migration of search page status and settings.
Namespace
Drupal\Tests\search\Kernel\Migrate\d7Code
public function testModuleExists() : void {
$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.