function StaticMapTest::testWithNullSourceNotInMap
Same name in other branches
- 9 core/modules/migrate/tests/src/Unit/process/StaticMapTest.php \Drupal\Tests\migrate\Unit\process\StaticMapTest::testWithNullSourceNotInMap()
- 10 core/modules/migrate/tests/src/Unit/process/StaticMapTest.php \Drupal\Tests\migrate\Unit\process\StaticMapTest::testWithNullSourceNotInMap()
Tests when the source is NULL.
File
-
core/
modules/ migrate/ tests/ src/ Unit/ process/ StaticMapTest.php, line 99
Class
- StaticMapTest
- Tests the static map process plugin.
Namespace
Drupal\Tests\migrate\Unit\processCode
public function testWithNullSourceNotInMap() : void {
$this->expectException(MigrateSkipRowException::class);
$this->expectExceptionMessage("No static mapping found for 'NULL' and no default value provided for destination 'destination_property'");
$this->plugin
->transform(NULL, $this->migrateExecutable, $this->row, 'destination_property');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.