function RowTest::testGetMultiple
Same name in other branches
- 9 core/modules/migrate/tests/src/Unit/RowTest.php \Drupal\Tests\migrate\Unit\RowTest::testGetMultiple()
- 10 core/modules/migrate/tests/src/Unit/RowTest.php \Drupal\Tests\migrate\Unit\RowTest::testGetMultiple()
- 11.x core/modules/migrate/tests/src/Unit/RowTest.php \Drupal\Tests\migrate\Unit\RowTest::testGetMultiple()
Test 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\UnitCode
public function testGetMultiple(array $keys, array $expected_values) {
$row = $this->createRowWithDestinationProperties($this->testGetSourceProperties, $this->testGetSourceIds, $this->testGetDestinationProperties);
$this->assertArrayEquals(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.