function MigrateLookupTest::testInvalidMigrationLookup
Tests an invalid lookup.
File
-
core/
modules/ migrate/ tests/ src/ Kernel/ MigrateLookupTest.php, line 84
Class
- MigrateLookupTest
- Tests the Migrate Lookup service.
Namespace
Drupal\Tests\migrate\KernelCode
public function testInvalidMigrationLookup() {
$this->expectException(PluginNotFoundException::class);
$this->expectExceptionMessage("Plugin ID 'invalid_migration' was not found.");
// Test invalid migration_id.
$this->migrateLookup
->lookup('invalid_migration', [
'id' => 1337,
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.