public function CSVUnitTest::testMigrateExceptionPathMissing in Migrate Source CSV 8.3
Same name and namespace in other branches
- 8.2 tests/src/Unit/Plugin/migrate/source/CSVUnitTest.php \Drupal\Tests\migrate_source_csv\Unit\Plugin\migrate\source\CSVUnitTest::testMigrateExceptionPathMissing()
Tests that a missing path will throw an exception.
File
- tests/
src/ Unit/ Plugin/ migrate/ source/ CSVUnitTest.php, line 103
Class
- CSVUnitTest
- @coversDefaultClass \Drupal\migrate_source_csv\Plugin\migrate\source\CSV
Namespace
Drupal\Tests\migrate_source_csv\Unit\Plugin\migrate\sourceCode
public function testMigrateExceptionPathMissing() : void {
$this
->expectException(\InvalidArgumentException::class);
$this
->expectExceptionMessage('You must declare the "path" to the source CSV file in your source settings.');
new CSV([], $this->pluginId, $this->pluginDefinition, $this->migration);
}