function RowTest::testGet
Same name in other branches
- 9 core/modules/migrate/tests/src/Unit/RowTest.php \Drupal\Tests\migrate\Unit\RowTest::testGet()
- 8.9.x core/modules/migrate/tests/src/Unit/RowTest.php \Drupal\Tests\migrate\Unit\RowTest::testGet()
- 10 core/modules/migrate/tests/src/Unit/RowTest.php \Drupal\Tests\migrate\Unit\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 @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.