function RowTest::testGetMultiple

Tests getting multiple source and destination properties.

@legacy-covers ::getMultiple

Attributes

#[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 409

Class

RowTest
Tests Drupal\migrate\Row.

Namespace

Drupal\Tests\migrate\Unit

Code

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

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