Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / migrate / tests / src / Unit / process / CallbackTest.php
index e3b8f27708bd6e7d1251149762df3c2058eff8b7..91eb2e7603e559fd2ff300383953309c0f4ce535 100644 (file)
@@ -30,7 +30,7 @@ class CallbackTest extends MigrateProcessTestCase {
   public function testCallbackWithFunction() {
     $this->plugin->setCallable('strtolower');
     $value = $this->plugin->transform('FooBar', $this->migrateExecutable, $this->row, 'destinationproperty');
-    $this->assertSame($value, 'foobar');
+    $this->assertSame('foobar', $value);
   }
 
   /**
@@ -39,7 +39,7 @@ class CallbackTest extends MigrateProcessTestCase {
   public function testCallbackWithClassMethod() {
     $this->plugin->setCallable(['\Drupal\Component\Utility\Unicode', 'strtolower']);
     $value = $this->plugin->transform('FooBar', $this->migrateExecutable, $this->row, 'destinationproperty');
-    $this->assertSame($value, 'foobar');
+    $this->assertSame('foobar', $value);
   }
 
 }