File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
dev/tests/api-functional/testsuite/Magento/AsynchronousOperations/Api Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -15,25 +15,30 @@ class BulkStatusInterfaceTest extends WebapiAbstract
15
15
{
16
16
const RESOURCE_PATH = '/V1/bulk/ ' ;
17
17
const SERVICE_NAME = 'asynchronousOperationsBulkStatusV1 ' ;
18
+ const GET_COUNT_OPERATION_NAME = "GetOperationsCountByBulkIdAndStatus " ;
18
19
const TEST_UUID = "bulk-uuid-searchable-6 " ;
19
20
20
21
/**
21
22
* @magentoApiDataFixture Magento/AsynchronousOperations/_files/operation_searchable.php
22
23
*/
23
24
public function testGetListByBulkStartTime ()
24
25
{
25
-
26
+ $ resourcePath = self :: RESOURCE_PATH . self :: TEST_UUID . " /operation-status/ " . OperationInterface:: STATUS_TYPE_OPEN ;
26
27
$ serviceInfo = [
27
28
'rest ' => [
28
- 'resourcePath ' => self :: RESOURCE_PATH . self :: TEST_UUID . " /operation-status/ " . OperationInterface:: STATUS_TYPE_OPEN ,
29
+ 'resourcePath ' => $ resourcePath ,
29
30
'httpMethod ' => \Magento \Framework \Webapi \Rest \Request::HTTP_METHOD_GET
30
31
],
31
32
'soap ' => [
32
33
'service ' => self ::SERVICE_NAME ,
33
- 'operation ' => self ::SERVICE_NAME . 'Get ' ,
34
+ 'serviceVersion ' => 'V1 ' ,
35
+ 'operation ' => self ::SERVICE_NAME . self ::GET_COUNT_OPERATION_NAME
34
36
],
35
37
];
36
- $ qty = $ this ->_webApiCall ($ serviceInfo );
38
+ $ qty = $ this ->_webApiCall (
39
+ $ serviceInfo ,
40
+ ['bulkUuid ' => self ::TEST_UUID , 'status ' => OperationInterface::STATUS_TYPE_OPEN ]
41
+ );
37
42
$ this ->assertEquals (2 , $ qty );
38
43
}
39
44
}
You can’t perform that action at this time.
0 commit comments