Skip to content
Snippets Groups Projects
Commit e5b5f315 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2725755 by mkalkbrenner: Fatal error: Cannot redeclare class...

Issue #2725755 by mkalkbrenner: Fatal error: Cannot redeclare class Drupal\Tests\migrate\Unit\TestMigration
parent f1442cf2
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ public function setUp() {
public function testDependencyBuilding($migrations_data, $result_ids) {
$migrations = [];
foreach ($migrations_data as $migration_id => $migration_data) {
$migrations[$migration_id] = new TestMigration($migration_id, $migration_data['dependencies']);
$migrations[$migration_id] = new TestMigrationMock($migration_id, $migration_data['dependencies']);
}
$ordered_migrations = $this->pluginManager->buildDependencyMigration($migrations, []);
......@@ -179,7 +179,7 @@ public function dependencyProvider() {
* array with mocks in it. PHPUnit mocks are really complex, and if PHP tries
* to compare them it will die with "Nesting level too deep".
*/
class TestMigration extends Migration {
class TestMigrationMock extends Migration {
/**
* The values passed into set().
*
......@@ -188,7 +188,7 @@ class TestMigration extends Migration {
public $set = [];
/**
* TestMigration constructor.
* TestMigrationMock constructor.
*/
public function __construct($id, $dependencies) {
// Intentionally ignore parent constructor.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment