3 namespace Drupal\Tests\migrate_drupal_ui\Functional\d7;
5 use Drupal\Tests\migrate_drupal_ui\Functional\MigrateUpgradeTestBase;
6 use Drupal\user\Entity\User;
9 * Tests Drupal 7 upgrade using the migrate UI.
11 * The test method is provided by the MigrateUpgradeTestBase class.
13 * @group migrate_drupal_ui
15 class MigrateUpgrade7Test extends MigrateUpgradeTestBase {
20 public static $modules = ['file'];
25 protected function setUp() {
27 $this->loadFixture(drupal_get_path('module', 'migrate_drupal') . '/tests/fixtures/drupal7.php');
33 protected function getSourceBasePath() {
34 return __DIR__ . '/files';
40 protected function getEntityCounts() {
42 'aggregator_item' => 10,
43 'aggregator_feed' => 1,
46 'block_content_type' => 1,
48 // The 'standard' profile provides the 'comment' comment type, and the
49 // migration creates 6 comment types, one per node type.
51 // Module 'language' comes with 'en', 'und', 'zxx'. Migration adds 'is'.
52 'configurable_language' => 4,
56 'field_storage_config' => 46,
60 'language_content_settings' => 2,
70 'taxonomy_term' => 18,
71 'taxonomy_vocabulary' => 4,
75 'menu_link_content' => 7,
78 'entity_form_display' => 17,
79 'entity_form_mode' => 1,
80 'entity_view_display' => 28,
81 'entity_view_mode' => 14,
82 'base_field_override' => 9,
87 * Executes all steps of migrations upgrade.
89 public function testMigrateUpgrade() {
90 parent::testMigrateUpgrade();
92 // Ensure migrated users can log in.
93 $user = User::load(2);
94 $user->passRaw = 'a password';
95 $this->drupalLogin($user);