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