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