function MigratePostRowSaveEventTest::testGetDestinationIdValues

Same name in other branches
  1. 9 core/modules/migrate/tests/src/Unit/Event/MigratePostRowSaveEventTest.php \Drupal\Tests\migrate\Unit\Event\MigratePostRowSaveEventTest::testGetDestinationIdValues()
  2. 8.9.x core/modules/migrate/tests/src/Unit/Event/MigratePostRowSaveEventTest.php \Drupal\Tests\migrate\Unit\Event\MigratePostRowSaveEventTest::testGetDestinationIdValues()
  3. 10 core/modules/migrate/tests/src/Unit/Event/MigratePostRowSaveEventTest.php \Drupal\Tests\migrate\Unit\Event\MigratePostRowSaveEventTest::testGetDestinationIdValues()

Tests getDestinationIdValues method.

@covers ::__construct @covers ::getDestinationIdValues

File

core/modules/migrate/tests/src/Unit/Event/MigratePostRowSaveEventTest.php, line 21

Class

MigratePostRowSaveEventTest
@coversDefaultClass \Drupal\migrate\Event\MigratePostRowSaveEvent @group migrate

Namespace

Drupal\Tests\migrate\Unit\Event

Code

public function testGetDestinationIdValues() : 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 MigratePostRowSaveEvent($migration, $message_service, $row, [
        1,
        2,
        3,
    ]);
    $this->assertSame([
        1,
        2,
        3,
    ], $event->getDestinationIdValues());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.