public function MigrateStubTest::testInvalidSourceIdKeys in Drupal 8
Same name and namespace in other branches
- 9 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 115
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,
]);
}