public function MigrateStubTest::testInvalidSourceIdCount in Drupal 8
Same name and namespace in other branches
- 9 core/modules/migrate/tests/src/Kernel/MigrateStubTest.php \Drupal\Tests\migrate\Kernel\MigrateStubTest::testInvalidSourceIdCount()
Test invalid source id count.
File
- core/
modules/ migrate/ tests/ src/ Kernel/ MigrateStubTest.php, line 106
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,
]);
}