function MigrateStubTest::testInvalidSourceIdCount

Same name in other branches
  1. 9 core/modules/migrate/tests/src/Kernel/MigrateStubTest.php \Drupal\Tests\migrate\Kernel\MigrateStubTest::testInvalidSourceIdCount()
  2. 8.9.x core/modules/migrate/tests/src/Kernel/MigrateStubTest.php \Drupal\Tests\migrate\Kernel\MigrateStubTest::testInvalidSourceIdCount()
  3. 10 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 127

Class

MigrateStubTest
Tests the migrate.stub Service.

Namespace

Drupal\Tests\migrate\Kernel

Code

public function testInvalidSourceIdCount() : void {
    $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,
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.