function MigrateStubTest::testInvalidSourceIdKeys
Same name in other branches
- 9 core/modules/migrate/tests/src/Kernel/MigrateStubTest.php \Drupal\Tests\migrate\Kernel\MigrateStubTest::testInvalidSourceIdKeys()
- 10 core/modules/migrate/tests/src/Kernel/MigrateStubTest.php \Drupal\Tests\migrate\Kernel\MigrateStubTest::testInvalidSourceIdKeys()
- 11.x 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,
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.