Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / migrate / tests / src / Unit / process / GetTest.php
index 59ce8b68f8d33f56034335d00f3de87ffdfe153e..5bc6247e7d8b1e6f8cb521934f183322e8858f2e 100644 (file)
@@ -34,7 +34,7 @@ class GetTest extends MigrateProcessTestCase {
       ->will($this->returnValue('source_value'));
     $this->plugin->setSource('test');
     $value = $this->plugin->transform(NULL, $this->migrateExecutable, $this->row, 'destinationproperty');
-    $this->assertSame($value, 'source_value');
+    $this->assertSame('source_value', $value);
   }
 
   /**
@@ -52,7 +52,7 @@ class GetTest extends MigrateProcessTestCase {
         return $map[$argument];
       }));
     $value = $this->plugin->transform(NULL, $this->migrateExecutable, $this->row, 'destinationproperty');
-    $this->assertSame($value, ['source_value1', 'source_value2']);
+    $this->assertSame(['source_value1', 'source_value2'], $value);
   }
 
   /**
@@ -65,7 +65,7 @@ class GetTest extends MigrateProcessTestCase {
       ->will($this->returnValue('source_value'));
     $this->plugin->setSource('@@test');
     $value = $this->plugin->transform(NULL, $this->migrateExecutable, $this->row, 'destinationproperty');
-    $this->assertSame($value, 'source_value');
+    $this->assertSame('source_value', $value);
   }
 
   /**
@@ -85,7 +85,7 @@ class GetTest extends MigrateProcessTestCase {
         return $map[$argument];
       }));
     $value = $this->plugin->transform(NULL, $this->migrateExecutable, $this->row, 'destinationproperty');
-    $this->assertSame($value, ['source_value1', 'source_value2', 'source_value3', 'source_value4']);
+    $this->assertSame(['source_value1', 'source_value2', 'source_value3', 'source_value4'], $value);
   }
 
   /**