public function MigrateStubTest::testInvalidSourceIdKeys in Drupal 9
Same name and namespace in other branches
- 8 core/modules/migrate/tests/src/Kernel/MigrateStubTest.php \Drupal\Tests\migrate\Kernel\MigrateStubTest::testInvalidSourceIdKeys()
Tests invalid source ids keys.
File
- core/
modules/ migrate/ tests/ src/ Kernel/ MigrateStubTest.php, line 134
Class
- MigrateStubTest
- Tests the migrate.stub Service.
Namespace
Drupal\Tests\migrate\KernelCode
public function testInvalidSourceIdKeys() {
$this
->expectException(\InvalidArgumentException::class);
$this
->expectExceptionMessage("'version_id' is defined as a source ID but has no value.");
$this->migrateStub
->createStub('sample_stubbing_migration_with_multiple_source_ids', [
'id' => 17,
'not_a_key' => 17,
]);
}