X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fmigrate%2Ftests%2Fsrc%2FUnit%2Fprocess%2FStaticMapTest.php;h=1a9a61acd68a3c8115a26ed5be5a909bd9a44953;hb=4f1b9b4ab48a8498afac9e2213a02a23ccf4a06c;hp=91a0d2c70886fc7c1b7eef15e11accbe9d42a796;hpb=af6d1fb995500ae68849458ee10d66abbdcfb252;p=yaffs-website diff --git a/web/core/modules/migrate/tests/src/Unit/process/StaticMapTest.php b/web/core/modules/migrate/tests/src/Unit/process/StaticMapTest.php index 91a0d2c70..1a9a61acd 100644 --- a/web/core/modules/migrate/tests/src/Unit/process/StaticMapTest.php +++ b/web/core/modules/migrate/tests/src/Unit/process/StaticMapTest.php @@ -2,6 +2,7 @@ namespace Drupal\Tests\migrate\Unit\process; +use Drupal\Component\Utility\Variable; use Drupal\migrate\MigrateException; use Drupal\migrate\MigrateSkipRowException; use Drupal\migrate\Plugin\migrate\process\StaticMap; @@ -50,7 +51,7 @@ class StaticMapTest extends MigrateProcessTestCase { * Tests when the source is invalid. */ public function testMapwithInvalidSource() { - $this->setExpectedException(MigrateSkipRowException::class); + $this->setExpectedException(MigrateSkipRowException::class, sprintf("No static mapping found for '%s' and no default value provided for destination '%s'.", Variable::export(['bar']), 'destinationproperty')); $this->plugin->transform(['bar'], $this->migrateExecutable, $this->row, 'destinationproperty'); }