X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fmigrate_drupal_ui%2Ftests%2Fsrc%2FFunctional%2Fd6%2FMigrateUpgrade6Test.php;fp=web%2Fcore%2Fmodules%2Fmigrate_drupal_ui%2Ftests%2Fsrc%2FFunctional%2Fd6%2FMigrateUpgrade6Test.php;h=0578675c054b0514bc168598092759b609fd0c96;hb=bfbba508964731508b9bd6d5835c2edc858db95b;hp=0000000000000000000000000000000000000000;hpb=cb9a80db11fc6b014e5b1e693a5a391c95eb5d9a;p=yaffs-website diff --git a/web/core/modules/migrate_drupal_ui/tests/src/Functional/d6/MigrateUpgrade6Test.php b/web/core/modules/migrate_drupal_ui/tests/src/Functional/d6/MigrateUpgrade6Test.php new file mode 100644 index 000000000..0578675c0 --- /dev/null +++ b/web/core/modules/migrate_drupal_ui/tests/src/Functional/d6/MigrateUpgrade6Test.php @@ -0,0 +1,90 @@ +loadFixture(drupal_get_path('module', 'migrate_drupal') . '/tests/fixtures/drupal6.php'); + } + + /** + * {@inheritdoc} + */ + protected function getSourceBasePath() { + return __DIR__ . '/files'; + } + + /** + * {@inheritdoc} + */ + protected function getEntityCounts() { + return [ + 'aggregator_item' => 1, + 'aggregator_feed' => 1, + 'block' => 35, + 'block_content' => 2, + 'block_content_type' => 1, + 'comment' => 3, + 'comment_type' => 3, + 'contact_form' => 5, + 'configurable_language' => 5, + 'editor' => 2, + 'field_config' => 73, + 'field_storage_config' => 48, + 'file' => 7, + 'filter_format' => 7, + 'image_style' => 5, + 'language_content_settings' => 2, + 'migration' => 105, + 'node' => 16, + 'node_type' => 13, + 'rdf_mapping' => 7, + 'search_page' => 2, + 'shortcut' => 2, + 'shortcut_set' => 1, + 'action' => 22, + 'menu' => 8, + 'taxonomy_term' => 7, + 'taxonomy_vocabulary' => 6, + 'tour' => 4, + 'user' => 7, + 'user_role' => 6, + 'menu_link_content' => 4, + 'view' => 14, + 'date_format' => 11, + 'entity_form_display' => 19, + 'entity_form_mode' => 1, + 'entity_view_display' => 43, + 'entity_view_mode' => 14, + 'base_field_override' => 38, + ]; + } + + /** + * Executes all steps of migrations upgrade. + */ + public function testMigrateUpgrade() { + parent::testMigrateUpgrade(); + + // Ensure migrated users can log in. + $user = User::load(2); + $user->passRaw = 'john.doe_pass'; + $this->drupalLogin($user); + } + +}