Commit 1743f6cb authored by alexpott's avatar alexpott

Issue #2534032 by mikeryan: Move module-specific migration support into the system module

parent 5073c7ba
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Plugin\migrate\process\d6\SystemUpdate7000.
* Contains \Drupal\system\Plugin\migrate\process\d6\SystemUpdate7000.
*/
namespace Drupal\migrate_drupal\Plugin\migrate\process\d6;
namespace Drupal\system\Plugin\migrate\process\d6;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\ProcessPluginBase;
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Plugin\migrate\source\d6\Menu.
* Contains \Drupal\system\Plugin\migrate\source\d6\Menu.
*/
namespace Drupal\migrate_drupal\Plugin\migrate\source\d6;
namespace Drupal\system\Plugin\migrate\source\d6;
use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;
......
......@@ -2,18 +2,19 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Tests\d6\MigrateDateFormatTest.
* Contains \Drupal\system\Tests\Migrate\d6\MigrateDateFormatTest.
*/
namespace Drupal\migrate_drupal\Tests\d6;
namespace Drupal\system\Tests\Migrate\d6;
use Drupal\migrate\MigrateExecutable;
use Drupal\Core\Database\Database;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
/**
* Upgrade date formats to core.date_format.*.yml.
*
* @group migrate_drupal
* @group system
*/
class MigrateDateFormatTest extends MigrateDrupal6TestBase {
......
......@@ -2,19 +2,20 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Tests\d6\MigrateMenuTest.
* Contains \Drupal\system\Tests\Migrate\d6\MigrateMenuTest.
*/
namespace Drupal\migrate_drupal\Tests\d6;
namespace Drupal\system\Tests\Migrate\d6;
use Drupal\migrate\MigrateExecutable;
use Drupal\Core\Database\Database;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
use Drupal\system\Entity\Menu;
/**
* Upgrade menus to system.menu.*.yml.
*
* @group migrate_drupal
* @group system
*/
class MigrateMenuTest extends MigrateDrupal6TestBase {
......
......@@ -2,15 +2,17 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Tests\d6\MigrateSystemCronTest.
* Contains \Drupal\system\Tests\Migrate\d6\MigrateSystemCronTest.
*/
namespace Drupal\migrate_drupal\Tests\d6;
namespace Drupal\system\Tests\Migrate\d6;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
/**
* Upgrade cron variable to system.*.yml.
*
* @group migrate_drupal
* @group system
*/
class MigrateSystemCronTest extends MigrateDrupal6TestBase {
......
......@@ -2,15 +2,17 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Tests\d6\MigrateSystemFileTest.
* Contains \Drupal\system\Tests\Migrate\d6\MigrateSystemFileTest.
*/
namespace Drupal\migrate_drupal\Tests\d6;
namespace Drupal\system\Tests\Migrate\d6;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
/**
* Upgrade variables to system.*.yml.
*
* @group migrate_drupal
* @group system
*/
class MigrateSystemFileTest extends MigrateDrupal6TestBase {
......
......@@ -2,15 +2,17 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Tests\d6\MigrateSystemImageGdTest.
* Contains \Drupal\system\Tests\Migrate\d6\MigrateSystemImageGdTest.
*/
namespace Drupal\migrate_drupal\Tests\d6;
namespace Drupal\system\Tests\Migrate\d6;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
/**
* Upgrade image gd variables to system.*.yml.
*
* @group migrate_drupal
* @group system
*/
class MigrateSystemImageGdTest extends MigrateDrupal6TestBase {
......
......@@ -2,15 +2,17 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Tests\d6\MigrateSystemImageTest.
* Contains \Drupal\system\Tests\Migrate\d6\MigrateSystemImageTest.
*/
namespace Drupal\migrate_drupal\Tests\d6;
namespace Drupal\system\Tests\Migrate\d6;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
/**
* Upgrade image variables to system.*.yml.
*
* @group migrate_drupal
* @group system
*/
class MigrateSystemImageTest extends MigrateDrupal6TestBase {
......
......@@ -2,17 +2,18 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Tests\d6\MigrateSystemLoggingTest.
* Contains \Drupal\system\Tests\Migrate\d6\MigrateSystemLoggingTest.
*/
namespace Drupal\migrate_drupal\Tests\d6;
namespace Drupal\system\Tests\Migrate\d6;
use Drupal\config\Tests\SchemaCheckTestTrait;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
/**
* Upgrade error_level variable to system.logging.yml.
*
* @group migrate_drupal
* @group system
*/
class MigrateSystemLoggingTest extends MigrateDrupal6TestBase {
......
......@@ -2,15 +2,17 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Tests\d6\MigrateSystemMaintenanceTest.
* Contains \Drupal\system\Tests\Migrate\d6\MigrateSystemMaintenanceTest.
*/
namespace Drupal\migrate_drupal\Tests\d6;
namespace Drupal\system\Tests\Migrate\d6;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
/**
* Upgrade maintenance variables to system.*.yml.
*
* @group migrate_drupal
* @group system
*/
class MigrateSystemMaintenanceTest extends MigrateDrupal6TestBase {
......
......@@ -2,15 +2,17 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Tests\d6\MigrateSystemPerformanceTest.
* Contains \Drupal\system\Tests\Migrate\d6\MigrateSystemPerformanceTest.
*/
namespace Drupal\migrate_drupal\Tests\d6;
namespace Drupal\system\Tests\Migrate\d6;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
/**
* Upgrade performance variables to system.*.yml.
*
* @group migrate_drupal
* @group system
*/
class MigrateSystemPerformanceTest extends MigrateDrupal6TestBase {
......
......@@ -2,15 +2,17 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Tests\d6\MigrateSystemRssTest.
* Contains \Drupal\system\Tests\Migrate\d6\MigrateSystemRssTest.
*/
namespace Drupal\migrate_drupal\Tests\d6;
namespace Drupal\system\Tests\Migrate\d6;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
/**
* Upgrade rss variable to system.*.yml.
*
* @group migrate_drupal
* @group system
*/
class MigrateSystemRssTest extends MigrateDrupal6TestBase {
......
......@@ -2,15 +2,17 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Tests\d6\MigrateSystemSiteTest.
* Contains \Drupal\system\Tests\Migrate\d6\MigrateSystemSiteTest.
*/
namespace Drupal\migrate_drupal\Tests\d6;
namespace Drupal\system\Tests\Migrate\d6;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
/**
* Upgrade site variables to system.*.yml.
*
* @group migrate_drupal
* @group system
*/
class MigrateSystemSiteTest extends MigrateDrupal6TestBase {
......
......@@ -2,23 +2,23 @@
/**
* @file
* Contains \Drupal\Tests\migrate_drupal\Unit\source\d6\MenuTest.
* Contains \Drupal\Tests\system\Unit\Migrate\source\d6\MenuTest.
*/
namespace Drupal\Tests\migrate_drupal\Unit\source\d6;
namespace Drupal\Tests\system\Unit\Migrate\source\d6;
use Drupal\Tests\migrate\Unit\MigrateSqlSourceTestCase;
/**
* Tests D6 menu source plugin.
*
* @group migrate_drupal
* @group system
*/
class MenuTest extends MigrateSqlSourceTestCase {
// The plugin system is not working during unit testing so the source plugin
// class needs to be manually specified.
const PLUGIN_CLASS = 'Drupal\migrate_drupal\Plugin\migrate\source\d6\Menu';
const PLUGIN_CLASS = 'Drupal\system\Plugin\migrate\source\d6\Menu';
// The fake Migration configuration entity.
protected $migrationConfiguration = array(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment