EventBase example

class EventBaseTest extends UnitTestCase {

  /** * Tests 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();
    $event = new EventBase($migration$message_service);
    $this->assertSame($migration$event->getMigration());
  }

  /** * Tests logging a message. * * @covers ::__construct * @covers ::logMessage */
  public function testLogMessage() {
    $migration = $this->prophesize('\Drupal\migrate\Plugin\MigrationInterface')->reveal();
    
Home | Imprint | This part of the site doesn't use cookies.