Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / migrate / tests / src / Unit / process / FlattenTest.php
index 484cfc78d258e199be34b7a94efa42fbc6599d82..496cf92216667902702c13d155600eb248a52a44 100644 (file)
@@ -1,8 +1,8 @@
 <?php
 
 namespace Drupal\Tests\migrate\Unit\process;
-use Drupal\migrate\Plugin\migrate\process\Flatten;
 
+use Drupal\migrate\Plugin\migrate\process\Flatten;
 
 /**
  * Tests the flatten plugin.
@@ -17,7 +17,7 @@ class FlattenTest extends MigrateProcessTestCase {
   public function testFlatten() {
     $plugin = new Flatten([], 'flatten', []);
     $flattened = $plugin->transform([1, 2, [3, 4, [5]], [], [7, 8]], $this->migrateExecutable, $this->row, 'destinationproperty');
-    $this->assertSame($flattened, [1, 2, 3, 4, 5, 7, 8]);
+    $this->assertSame([1, 2, 3, 4, 5, 7, 8], $flattened);
   }
 
 }