function RowTest::testGetSourceProperty
Tests getting the source property.
@legacy-covers ::getSourceProperty
File
-
core/
modules/ migrate/ tests/ src/ Unit/ RowTest.php, line 277
Class
- RowTest
- Tests Drupal\migrate\Row.
Namespace
Drupal\Tests\migrate\UnitCode
public function testGetSourceProperty() : void {
$row = new Row($this->testValues, $this->testSourceIds);
$this->assertSame($this->testValues['nid'], $row->getSourceProperty('nid'));
$this->assertSame($this->testValues['title'], $row->getSourceProperty('title'));
$this->assertNull($row->getSourceProperty('non_existing'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.