Skip to content

Commit 9ce49c4

Browse files
committed
Fix tests
1 parent 33b33e9 commit 9ce49c4

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

dev/tests/api-functional/testsuite/Magento/AsynchronousOperations/Api/BulkStatusInterfaceTest.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,30 @@ class BulkStatusInterfaceTest extends WebapiAbstract
1515
{
1616
const RESOURCE_PATH = '/V1/bulk/';
1717
const SERVICE_NAME = 'asynchronousOperationsBulkStatusV1';
18+
const GET_COUNT_OPERATION_NAME = "GetOperationsCountByBulkIdAndStatus";
1819
const TEST_UUID = "bulk-uuid-searchable-6";
1920

2021
/**
2122
* @magentoApiDataFixture Magento/AsynchronousOperations/_files/operation_searchable.php
2223
*/
2324
public function testGetListByBulkStartTime()
2425
{
25-
26+
$resourcePath = self::RESOURCE_PATH . self::TEST_UUID . "/operation-status/" . OperationInterface::STATUS_TYPE_OPEN;
2627
$serviceInfo = [
2728
'rest' => [
28-
'resourcePath' => self::RESOURCE_PATH . self::TEST_UUID . "/operation-status/" . OperationInterface::STATUS_TYPE_OPEN,
29+
'resourcePath' => $resourcePath,
2930
'httpMethod' => \Magento\Framework\Webapi\Rest\Request::HTTP_METHOD_GET
3031
],
3132
'soap' => [
3233
'service' => self::SERVICE_NAME,
33-
'operation' => self::SERVICE_NAME . 'Get',
34+
'serviceVersion' => 'V1',
35+
'operation' => self::SERVICE_NAME . self::GET_COUNT_OPERATION_NAME
3436
],
3537
];
36-
$qty = $this->_webApiCall($serviceInfo);
38+
$qty = $this->_webApiCall(
39+
$serviceInfo,
40+
['bulkUuid' => self::TEST_UUID, 'status' => OperationInterface::STATUS_TYPE_OPEN]
41+
);
3742
$this->assertEquals(2, $qty);
3843
}
3944
}

0 commit comments

Comments
 (0)