Commit 39e76b06 authored by webchick's avatar webchick
Browse files

Issue #2148839 by chx: Move the drupal6_variable plugin where it belongs.

parent e0dbb5b1
......@@ -5,17 +5,16 @@
* Contains \Drupal\migrate\Plugin\migrate\source\d6\Variable.
*/
namespace Drupal\migrate_drupal\Plugin\migrate\source;
namespace Drupal\migrate_drupal\Plugin\migrate\source\d6;
use Drupal\migrate\Entity\MigrationInterface;
use Drupal\migrate_drupal\Plugin\migrate\source\d6\Drupal6SqlBase;
/**
* Drupal 6 variable source from database.
*
* @PluginID("drupal6_variable")
*/
class D6Variable extends Drupal6SqlBase {
class Variable extends Drupal6SqlBase {
/**
* The variable names to fetch.
......
......@@ -15,7 +15,7 @@
*/
class D6VariableTest extends MigrateSqlSourceTestCase {
const PLUGIN_CLASS = 'Drupal\migrate_drupal\Plugin\migrate\source\D6Variable';
const PLUGIN_CLASS = 'Drupal\migrate_drupal\Plugin\migrate\source\d6\Variable';
protected $migrationConfiguration = array(
'id' => 'test',
......@@ -61,13 +61,13 @@ public static function getInfo() {
}
namespace Drupal\migrate_drupal\Tests\source;
namespace Drupal\migrate_drupal\Tests\source\d6;
use Drupal\Core\Database\Connection;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\migrate_drupal\Plugin\migrate\source\D6Variable;
use Drupal\migrate_drupal\Plugin\migrate\source\d6\Variable;
class TestD6Variable extends D6Variable {
class TestVariable extends Variable {
function setDatabase(Connection $database) {
$this->database = $database;
}
......
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