You are here

public function StaticMapTest::testMapwithEmptySource in Zircon Profile 8

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

Tests when the source is empty.

@expectedException \Drupal\migrate\MigrateException

File

core/modules/migrate/tests/src/Unit/process/StaticMapTest.php, line 48
Contains \Drupal\Tests\migrate\Unit\process\StaticMapTest.

Class

StaticMapTest
Tests the static map process plugin.

Namespace

Drupal\Tests\migrate\Unit\process

Code

public function testMapwithEmptySource() {
  $this->plugin
    ->transform(array(), $this->migrateExecutable, $this->row, 'destinationproperty');
}