Skip to content

Commit a9e3067

Browse files
committed
ACPT-648: Cover API with Webapi Test
1 parent a6c3cb6 commit a9e3067

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

dev/tests/api-functional/testsuite/Magento/ImportCsv/Api/ImportCsvApiTest.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
7+
declare(strict_types=1);
28

39
namespace Magento\ImportCsv\Api;
410

511
use Magento\TestFramework\TestCase\WebapiAbstract;
612

713
class ImportCsvApiTest extends WebapiAbstract
814
{
9-
const RESOURCE_PATH = '/V1/import/csv';
15+
private const RESOURCE_PATH = '/V1/import/csv';
16+
private const SERVICE_NAME = 'importCsvV1';
17+
private const SERVICE_VERSION = 'V1';
1018

1119
/**
1220
* Test Rest API Import
@@ -21,6 +29,11 @@ public function testImport(array $requestData, array $expectedResponse): void
2129
'rest' => [
2230
'resourcePath' => self::RESOURCE_PATH,
2331
'httpMethod' => \Magento\Framework\Webapi\Rest\Request::HTTP_METHOD_POST,
32+
],
33+
'soap' => [
34+
'service' => self::SERVICE_NAME,
35+
'serviceVersion' => self::SERVICE_VERSION,
36+
'operation' => self::SERVICE_NAME . 'Save',
2437
]
2538
];
2639
$requestData['source']['csvData'] = base64_encode(file_get_contents($requestData['source']['csvData']));

0 commit comments

Comments
 (0)