You are here

public function StaticMapTest::testMapWithEmptySource in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate/tests/src/Unit/process/StaticMapTest.php \Drupal\Tests\migrate\Unit\process\StaticMapTest::testMapwithEmptySource()
  2. 9 core/modules/migrate/tests/src/Unit/process/StaticMapTest.php \Drupal\Tests\migrate\Unit\process\StaticMapTest::testMapwithEmptySource()

Tests when the source is empty.

File

core/modules/migrate/tests/src/Unit/process/StaticMapTest.php, line 45

Class

StaticMapTest
Tests the static map process plugin.

Namespace

Drupal\Tests\migrate\Unit\process

Code

public function testMapWithEmptySource() {
  $this
    ->expectException(MigrateException::class);
  $this->plugin
    ->transform([], $this->migrateExecutable, $this->row, 'destination_property');
}