public function RowTest::testGetSourceProperty in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/migrate/tests/src/Unit/RowTest.php \Drupal\Tests\migrate\Unit\RowTest::testGetSourceProperty()
Tests getting the source property.
@covers ::getSourceProperty
File
- core/
modules/ migrate/ tests/ src/ Unit/ RowTest.php, line 209 - Contains \Drupal\Tests\migrate\Unit\RowTest.
Class
- RowTest
- @coversDefaultClass \Drupal\migrate\Row @group migrate
Namespace
Drupal\Tests\migrate\UnitCode
public function testGetSourceProperty() {
$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'));
}