Update to Drupal 8.1.5. For more information, see https://www.drupal.org/project/drupal/releases/8.1.5
This commit is contained in:
parent
13b6ca7cc2
commit
38ba7c357d
342 changed files with 7814 additions and 1534 deletions
|
@ -10,7 +10,7 @@ use Drupal\Core\State\StateInterface;
|
|||
use Drupal\Core\Url;
|
||||
use Drupal\migrate\Plugin\MigrationPluginManagerInterface;
|
||||
use Drupal\migrate_drupal_ui\MigrateUpgradeRunBatch;
|
||||
use Drupal\migrate_drupal\MigrationCreationTrait;
|
||||
use Drupal\migrate_drupal\MigrationConfigurationTrait;
|
||||
use Symfony\Component\DependencyInjection\ContainerInterface;
|
||||
|
||||
/**
|
||||
|
@ -18,7 +18,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
|
|||
*/
|
||||
class MigrateUpgradeForm extends ConfirmFormBase {
|
||||
|
||||
use MigrationCreationTrait;
|
||||
use MigrationConfigurationTrait;
|
||||
|
||||
/**
|
||||
* Mapping of known migrations and their source and destination modules.
|
||||
|
|
|
@ -4,14 +4,14 @@ namespace Drupal\migrate_drupal_ui\Tests;
|
|||
|
||||
use Drupal\Core\Database\Database;
|
||||
use Drupal\migrate\Plugin\MigrateIdMapInterface;
|
||||
use Drupal\migrate_drupal\MigrationCreationTrait;
|
||||
use Drupal\migrate_drupal\MigrationConfigurationTrait;
|
||||
use Drupal\simpletest\WebTestBase;
|
||||
|
||||
/**
|
||||
* Provides a base class for testing migration upgrades in the UI.
|
||||
*/
|
||||
abstract class MigrateUpgradeTestBase extends WebTestBase {
|
||||
use MigrationCreationTrait;
|
||||
use MigrationConfigurationTrait;
|
||||
|
||||
/**
|
||||
* Use the Standard profile to test help implementations of many core modules.
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
namespace Drupal\migrate_drupal_ui\Tests\d6;
|
||||
|
||||
use Drupal\migrate_drupal_ui\Tests\MigrateUpgradeTestBase;
|
||||
use Drupal\user\Entity\User;
|
||||
|
||||
/**
|
||||
* Tests Drupal 6 upgrade using the migrate UI.
|
||||
|
@ -70,4 +71,16 @@ class MigrateUpgrade6Test extends MigrateUpgradeTestBase {
|
|||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Executes all steps of migrations upgrade.
|
||||
*/
|
||||
protected function testMigrateUpgrade() {
|
||||
parent::testMigrateUpgrade();
|
||||
|
||||
// Ensure migrated users can log in.
|
||||
$user = User::load(2);
|
||||
$user->pass_raw = 'john.doe_pass';
|
||||
$this->drupalLogin($user);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
namespace Drupal\migrate_drupal_ui\Tests\d7;
|
||||
|
||||
use Drupal\migrate_drupal_ui\Tests\MigrateUpgradeTestBase;
|
||||
use Drupal\user\Entity\User;
|
||||
|
||||
/**
|
||||
* Tests Drupal 7 upgrade using the migrate UI.
|
||||
|
@ -70,4 +71,16 @@ class MigrateUpgrade7Test extends MigrateUpgradeTestBase {
|
|||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Executes all steps of migrations upgrade.
|
||||
*/
|
||||
protected function testMigrateUpgrade() {
|
||||
parent::testMigrateUpgrade();
|
||||
|
||||
// Ensure migrated users can log in.
|
||||
$user = User::load(2);
|
||||
$user->pass_raw = 'a password';
|
||||
$this->drupalLogin($user);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Reference in a new issue