public function MigrateSpreadsheetTest::testPlugin in Migrate Spreadsheet 2.0.x
@covers ::initializeIterator @dataProvider pluginTestProvider
Parameters
array $configuration: The migrate plugin configuration.
File
- tests/
src/ Kernel/ MigrateSpreadsheetTest.php, line 43
Class
- MigrateSpreadsheetTest
- Tests the 'spreadsheet' migrate source plugin.
Namespace
Drupal\Tests\migrate_spreadsheet\KernelCode
public function testPlugin(array $configuration) : void {
$migration = $this->container
->get('plugin.manager.migration')
->createStubMigration($configuration);
$this
->executeMigration($migration);
$this
->assertSame('Foo', EntityTest::load(2)
->label());
$this
->assertSame('Bar', EntityTest::load(6)
->label());
$this
->assertSame('Baz', EntityTest::load(34)
->label());
$this
->assertSame('Qux', EntityTest::load(999)
->label());
}