function MigratePreRowSaveEventTest::testGetRow
Tests getRow method.
@legacy-covers ::__construct @legacy-covers ::getRow
File
-
core/
modules/ migrate/ tests/ src/ Unit/ Event/ MigratePreRowSaveEventTest.php, line 24
Class
Namespace
Drupal\Tests\migrate\Unit\EventCode
public function testGetRow() : void {
$migration = $this->prophesize('\\Drupal\\migrate\\Plugin\\MigrationInterface')
->reveal();
$message_service = $this->prophesize('\\Drupal\\migrate\\MigrateMessageInterface')
->reveal();
$row = $this->prophesize('\\Drupal\\migrate\\Row')
->reveal();
$event = new MigratePreRowSaveEvent($migration, $message_service, $row);
$this->assertSame($row, $event->getRow());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.