/** * Test getMigration method. * * @covers ::__construct * @covers ::getMigration */ public function testGetMigration() { $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 EventBase($migration, $message_service, $row, [1, 2, 3]); $this->assertSame($migration, $event->getMigration()); }