Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / migrate / tests / src / Unit / process / ExplodeTest.php
index 20bf3a0311d1b9f9b124cb1c00f683a6c2a343a2..466d002c9c74c6a3507ea7db6bc5486b7ee7a2c8 100644 (file)
@@ -29,7 +29,7 @@ class ExplodeTest extends MigrateProcessTestCase {
    */
   public function testTransform() {
     $value = $this->plugin->transform('foo,bar,tik', $this->migrateExecutable, $this->row, 'destinationproperty');
-    $this->assertSame($value, ['foo', 'bar', 'tik']);
+    $this->assertSame(['foo', 'bar', 'tik'], $value);
   }
 
   /**
@@ -38,7 +38,7 @@ class ExplodeTest extends MigrateProcessTestCase {
   public function testTransformLimit() {
     $plugin = new Explode(['delimiter' => '_', 'limit' => 2], 'map', []);
     $value = $plugin->transform('foo_bar_tik', $this->migrateExecutable, $this->row, 'destinationproperty');
-    $this->assertSame($value, ['foo', 'bar_tik']);
+    $this->assertSame(['foo', 'bar_tik'], $value);
   }
 
   /**
@@ -49,7 +49,7 @@ class ExplodeTest extends MigrateProcessTestCase {
 
     $concat = new Concat([], 'map', []);
     $concatenated = $concat->transform($exploded, $this->migrateExecutable, $this->row, 'destinationproperty');
-    $this->assertSame($concatenated, 'foobartik');
+    $this->assertSame('foobartik', $concatenated);
   }
 
   /**