You are here

public function CSVTest::migrateExceptionPathMissing in Migrate Source CSV 8

Tests that a missing path will throw an exception.

@test

@expectedException \Drupal\migrate\MigrateException

@expectedExceptionMessage You must declare the "path" to the source CSV file in your source settings.

File

tests/src/Unit/Plugin/migrate/source/CSVTest.php, line 79
Code for CSVTest.php.

Class

CSVTest
@coversDefaultClass \Drupal\migrate_source_csv\Plugin\migrate\source\CSV

Namespace

Drupal\Tests\migrate_source_csv\Unit\Plugin\migrate\source

Code

public function migrateExceptionPathMissing() {
  new CSV([], $this->pluginId, $this->pluginDefinition, $this->plugin);
}