use Drupal\KernelTests\KernelTestBase;
use Drupal\migrate\MigrateExecutable;
use Drupal\migrate\MigrateMessageInterface;
-use Drupal\migrate\Plugin\Migration;
use Drupal\node\Entity\NodeType;
use Drupal\taxonomy\Entity\Vocabulary;
protected $vocabulary = 'fruit';
/**
- * @var \Drupal\migrate\Plugin\MigrationPluginManager $migrationManager
- *
* The migration plugin manager.
+ *
+ * @var \Drupal\migrate\Plugin\MigrationPluginManager
*/
protected $migrationPluginManager;
$entity->save();
}
- /** @var Migration $migration */
+ /** @var \Drupal\migrate\Plugin\Migration $migration */
$migration = $this->migrationPluginManager->createStubMigration($definition);
/** @var EntityStorageBase $storage */
$storage = $this->readAttribute($migration->getDestinationPlugin(), 'storage');
}
}
else {
- $this->assertNotEmpty($entity, 'Entity with label ' . $row[$property] .' is empty');
+ $this->assertNotEmpty($entity, 'Entity with label ' . $row[$property] . ' is empty');
$this->assertEquals($row[$property], $entity->label());
}
}