Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / migrate_plus / tests / src / Kernel / Plugin / migrate / process / EntityGenerateTest.php
index c7a340a5fe62306cc543f0eac3c3a9f9dcfc57f5..a4c0f27f67ce607a42aad55befee22879268ec7f 100644 (file)
@@ -8,7 +8,6 @@ use Drupal\field\Tests\EntityReference\EntityReferenceTestTrait;
 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;
 
@@ -59,9 +58,9 @@ class EntityGenerateTest extends KernelTestBase implements MigrateMessageInterfa
   protected $vocabulary = 'fruit';
 
   /**
-   * @var \Drupal\migrate\Plugin\MigrationPluginManager $migrationManager
-   *
    * The migration plugin manager.
+   *
+   * @var \Drupal\migrate\Plugin\MigrationPluginManager
    */
   protected $migrationPluginManager;
 
@@ -128,7 +127,7 @@ class EntityGenerateTest extends KernelTestBase implements MigrateMessageInterfa
       $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');
@@ -153,7 +152,7 @@ class EntityGenerateTest extends KernelTestBase implements MigrateMessageInterfa
           }
         }
         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());
         }
       }