You are here

public function MigrateExecutableTest::testProcessRowEmptyPipeline in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 410
Contains \Drupal\Tests\migrate\Unit\MigrateExecutableTest.

Class

MigrateExecutableTest
@coversDefaultClass \Drupal\Tests\migrate\Unit\MigrateExecutableTest @group migrate

Namespace

Drupal\Tests\migrate\Unit

Code

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