You are here

public function RowTest::testGetMultiple in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/migrate/tests/src/Unit/RowTest.php \Drupal\Tests\migrate\Unit\RowTest::testGetMultiple()

Tests getting multiple source and destination properties.

@covers::getMultiple @dataProvider getMultipleDataProvider

Parameters

array $keys: An array of keys to look up.

array $expected_values: An array of expected values.

File

core/modules/migrate/tests/src/Unit/RowTest.php, line 367

Class

RowTest
@coversDefaultClass \Drupal\migrate\Row @group migrate

Namespace

Drupal\Tests\migrate\Unit

Code

public function testGetMultiple(array $keys, array $expected_values) {
  $row = $this
    ->createRowWithDestinationProperties($this->testGetSourceProperties, $this->testGetSourceIds, $this->testGetDestinationProperties);
  $this
    ->assertEquals(array_combine($keys, $expected_values), $row
    ->getMultiple($keys));
}