public function MigrationTest::testGetDestinationIds in Drupal 8
Same name and namespace in other branches
- 9 core/modules/migrate/tests/src/Kernel/Plugin/MigrationTest.php \Drupal\Tests\migrate\Kernel\Plugin\MigrationTest::testGetDestinationIds()
Tests Migration::getDestinationIds()
@covers ::getDestinationIds
File
- core/
modules/ migrate/ tests/ src/ Kernel/ Plugin/ MigrationTest.php, line 159
Class
- MigrationTest
- Tests the migration plugin.
Namespace
Drupal\Tests\migrate\Kernel\PluginCode
public function testGetDestinationIds() {
$migration = \Drupal::service('plugin.manager.migration')
->createStubMigration([
'destinationIds' => [
'foo' => 'bar',
],
]);
$destination_ids = $migration
->getDestinationIds();
$this
->assertNotEmpty($destination_ids, 'Destination ids are not empty');
$this
->assertEquals([
'foo' => 'bar',
], $destination_ids, 'Destination ids match the expected values.');
}