createXmlExport example

'id' => $salesChannelId,
            'domains' => [
                [
                    'id' => $salesChannelDomainId,
                    'languageId' => Defaults::LANGUAGE_SYSTEM,
                    'currencyId' => Defaults::CURRENCY,
                    'snippetSetId' => $this->getSnippetSetIdForLocale('en-GB'),
                    'url' => 'http://example.com',
                ],
            ],
        ]);
        $productExport = $this->createXmlExport(
            ProductExportEntity::ENCODING_UTF8,
            $salesChannelId,
            $salesChannelDomainId
        );

        $client->request('GET', getenv('APP_URL') . sprintf('/store-api/product-export/%s/%s', $productExport->getAccessKey()$productExport->getFileName()));

        static::assertEquals(200, $client->getResponse()->getStatusCode()(string) $client->getResponse()->getContent());

        $xml = simplexml_load_string((string) $client->getResponse()->getContent());

        
Home | Imprint | This part of the site doesn't use cookies.