View source
<?php
namespace Drupal\Tests\acquia_contenthub\Kernel;
class WebformImportExportTest extends ImportExportTestBase {
protected $fixtures = [
[
'cdf' => 'webform/webform.json',
'expectations' => 'expectations/webform/webform.php',
],
[
'cdf' => 'webform/webform-update-alias.json',
'expectations' => 'expectations/webform/webform_update_alias.php',
],
];
public static $modules = [
'system',
'user',
'field',
'depcalc',
'acquia_contenthub',
'path_alias',
'webform',
];
public function setUp() {
parent::setUp();
$this
->installSchema('webform', [
'webform',
]);
$this
->installConfig('webform');
$this
->installEntitySchema('user');
$this
->installSchema('user', [
'users_data',
]);
$this
->installEntitySchema('path_alias');
$this
->setUpCurrentUser();
}
public function testWebformImportExport($delta, $update_delta, $validate_data, $export_type, $export_uuid) {
parent::configEntityImportExport($delta, $validate_data, $export_type, $export_uuid);
parent::configEntityImportExport($update_delta, $validate_data, $export_type, $export_uuid);
}
public function webformImportExportDataProvider() {
return [
[
0,
1,
[
[
'type' => 'webform',
'uuid' => '035fd1a3-c6a4-449e-937b-e333eb4693b7',
],
],
'webform',
'035fd1a3-c6a4-449e-937b-e333eb4693b7',
],
];
}
}