function RowTest::testRowWithInvalidData
Tests object creation: invalid values.
File
-
core/
modules/ migrate/ tests/ src/ Unit/ RowTest.php, line 120
Class
- RowTest
- Tests Drupal\migrate\Row.
Namespace
Drupal\Tests\migrate\UnitCode
public function testRowWithInvalidData() : void {
$invalid_values = [
'title' => 'node X',
];
$this->expectException(\Exception::class);
new Row($invalid_values, $this->testSourceIds);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.