function RowTest::testGet
Tests getting source and destination properties.
@dataProvider getDataProvider
@covers ::get
Parameters
string $key: The key to look up.
string $expected_value: The expected value.
File
-
core/
modules/ migrate/ tests/ src/ Unit/ RowTest.php, line 325
Class
- RowTest
- @coversDefaultClass \Drupal\migrate\Row[[api-linebreak]] @group migrate
Namespace
Drupal\Tests\migrate\UnitCode
public function testGet($key, $expected_value) : void {
$row = $this->createRowWithDestinationProperties($this->testGetSourceProperties, $this->testGetSourceIds, $this->testGetDestinationProperties);
$this->assertSame($expected_value, $row->get($key));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.