public function WebformMigrateTest::testWebformMigrations in Webform: Migrate 8.2
Same name and namespace in other branches
- 8 tests/src/Kernel/Migrate/d7/WebformMigrateTest.php \Drupal\Tests\webform_migrate\Kernel\Migrate\d7\WebformMigrateTest::testWebformMigrations()
Tests the migration of webforms and webform submissions.
@dataProvider providerWebformMigrations
File
- tests/
src/ Kernel/ Migrate/ d7/ WebformMigrateTest.php, line 74
Class
- WebformMigrateTest
- Tests webform migrations.
Namespace
Drupal\Tests\webform_migrate\Kernel\Migrate\d7Code
public function testWebformMigrations(bool $classic_node_migration) {
$this
->setClassicNodeMigration($classic_node_migration);
// Execute the relevant migrations.
$this
->executeWebformMigrations($classic_node_migration);
// Check the forms.
$this
->assertWebform3Values();
$this
->assertWebform4Values();
$this
->assertWebform5Values();
// Check the form submissions. There must be 10.
$this
->assertWebformSubmission1Values();
$this
->assertWebformSubmission2Values();
$this
->assertWebformSubmission3Values();
$this
->assertWebformSubmission4Values();
$this
->assertWebformSubmission5Values();
$this
->assertWebformSubmission6Values();
$this
->assertWebformSubmission7Values();
$this
->assertWebformSubmission8Values();
$this
->assertWebformSubmission9Values();
$this
->assertWebformSubmission10Values();
}