MigratePreRowSaveEventTest.php
Same filename in other branches
Namespace
Drupal\Tests\migrate\Unit\EventFile
-
core/
modules/ migrate/ tests/ src/ Unit/ Event/ MigratePreRowSaveEventTest.php
View source
<?php
namespace Drupal\Tests\migrate\Unit\Event;
use Drupal\migrate\Event\MigratePreRowSaveEvent;
/**
* @coversDefaultClass \Drupal\migrate\Event\MigratePreRowSaveEvent
* @group migrate
*/
class MigratePreRowSaveEventTest extends EventBaseTest {
/**
* Test getRow method.
*
* @covers ::__construct
* @covers ::getRow
*/
public function testGetRow() {
$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());
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
MigratePreRowSaveEventTest | @coversDefaultClass \Drupal\migrate\Event\MigratePreRowSaveEvent @group migrate |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.