public function MigrateStubTest::testInvalidSourceIdCount in Drupal 9
Same name and namespace in other branches
- 8 core/modules/migrate/tests/src/Kernel/MigrateStubTest.php \Drupal\Tests\migrate\Kernel\MigrateStubTest::testInvalidSourceIdCount()
Tests invalid source id count.
File
- core/
modules/ migrate/ tests/ src/ Kernel/ MigrateStubTest.php, line 125
Class
- MigrateStubTest
- Tests the migrate.stub Service.
Namespace
Drupal\Tests\migrate\KernelCode
public function testInvalidSourceIdCount() {
$this
->expectException(\InvalidArgumentException::class);
$this
->expectExceptionMessage('Expected and provided source id counts do not match.');
$this->migrateStub
->createStub('sample_stubbing_migration_with_multiple_source_ids', [
17,
]);
}