#[Package('system-settings')]
class ImportExportHandlerTest extends AbstractImportExportTestCase
{ public function testImportExportHandlerDispatchesMessage(): void
{ /** @var TraceableMessageBus $messageBus */
$messageBus =
$this->
getContainer()->
get('messenger.bus.shopware'
);
$factory =
$this->
getContainer()->
get(ImportExportFactory::
class);
$context = Context::
createDefaultContext();
$importExportHandler =
new ImportExportHandler($messageBus,
$factory);
$importExportService =
$this->
getContainer()->
get(ImportExportService::
class);
$profileId =
$this->
getDefaultProfileId(PropertyGroupOptionDefinition::ENTITY_NAME
);
$expireDate =
new \
DateTimeImmutable('2099-01-01'
);
$file =
new UploadedFile(__DIR__ . '/../fixtures/properties.csv', 'properties.csv', 'text/csv'
);
$logEntity =
$importExportService->
prepareImport( $context,
$profileId,