You are here

public function MigrateExecutableTest::testProcessRowEmptyPipeline in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php \Drupal\Tests\migrate\Unit\MigrateExecutableTest::testProcessRowEmptyPipeline()
  2. 10 core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php \Drupal\Tests\migrate\Unit\MigrateExecutableTest::testProcessRowEmptyPipeline()

Tests the processRow method with an empty pipeline.

File

core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php, line 417

Class

MigrateExecutableTest
@coversDefaultClass \Drupal\migrate\MigrateExecutable @group migrate

Namespace

Drupal\Tests\migrate\Unit

Code

public function testProcessRowEmptyPipeline() {
  $this->migration
    ->expects($this
    ->once())
    ->method('getProcessPlugins')
    ->with(NULL)
    ->will($this
    ->returnValue([
    'test' => [],
  ]));
  $row = new Row();
  $this->executable
    ->processRow($row);
  $this
    ->assertSame($row
    ->getDestination(), []);
}