diff --git a/core/modules/migrate/tests/src/Unit/process/MigrationTest.php b/core/modules/migrate/tests/src/Unit/process/MigrationTest.php deleted file mode 100644 index 4b34e57..0000000 --- a/core/modules/migrate/tests/src/Unit/process/MigrationTest.php +++ /dev/null @@ -1,72 +0,0 @@ -plugin = new TestMigrationTest(); - $this->migrationConfiguration = array('id' => 'test_migration'); - parent::setUp(); - } - - /** - * Test the no_stub setting. - * - * @covers ::transform - */ - public function testNoStub() { - - $destination_id = 123; - $migration = $this->getMigration(); - $this->idMap->expects($this->once()) - ->method('lookupDestinationID') - ->willReturn([$destination_id]); - $this->plugin->migration = $migration; - - $storage = $this->getMock('Drupal\Core\Entity\EntityStorageInterface'); - $storage->expects($this->any()) - ->method('loadMultiple') - ->willReturn(array($migration, $migration)); - $this->plugin->setMigrationStorage($storage); - - $this->plugin->setConfiguration(array( - 'migration' => array('test_migration', 'test_migration2'), - )); - - $this->assertEquals($destination_id, $this->plugin->transform('test', $this->migrateExecutable, $this->row, 'test')); - } - - -} - -class TestMigrationTest extends Migration { - - public function __construct() { - } - - public function setConfiguration($configuration) { - $this->configuration = $configuration; - } - - public function setMigrationStorage($storage) { - $this->migrationStorage = $storage; - } - -}