public function RowTest::testGet in Drupal 8
Same name and namespace in other branches
- 9 core/modules/migrate/tests/src/Unit/RowTest.php \Drupal\Tests\migrate\Unit\RowTest::testGet()
Test 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 323
Class
- RowTest
- @coversDefaultClass \Drupal\migrate\Row @group migrate
Namespace
Drupal\Tests\migrate\UnitCode
public function testGet($key, $expected_value) {
$row = $this
->createRowWithDestinationProperties($this->testGetSourceProperties, $this->testGetSourceIds, $this->testGetDestinationProperties);
$this
->assertSame($expected_value, $row
->get($key));
}