Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nuzil committed Nov 22, 2019
1 parent 33b33e9 commit 9ce49c4
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,30 @@ class BulkStatusInterfaceTest extends WebapiAbstract
{
const RESOURCE_PATH = '/V1/bulk/';
const SERVICE_NAME = 'asynchronousOperationsBulkStatusV1';
const GET_COUNT_OPERATION_NAME = "GetOperationsCountByBulkIdAndStatus";
const TEST_UUID = "bulk-uuid-searchable-6";

/**
* @magentoApiDataFixture Magento/AsynchronousOperations/_files/operation_searchable.php
*/
public function testGetListByBulkStartTime()
{

$resourcePath = self::RESOURCE_PATH . self::TEST_UUID . "/operation-status/" . OperationInterface::STATUS_TYPE_OPEN;
$serviceInfo = [
'rest' => [
'resourcePath' => self::RESOURCE_PATH . self::TEST_UUID . "/operation-status/" . OperationInterface::STATUS_TYPE_OPEN,
'resourcePath' => $resourcePath,
'httpMethod' => \Magento\Framework\Webapi\Rest\Request::HTTP_METHOD_GET
],
'soap' => [
'service' => self::SERVICE_NAME,
'operation' => self::SERVICE_NAME . 'Get',
'serviceVersion' => 'V1',
'operation' => self::SERVICE_NAME . self::GET_COUNT_OPERATION_NAME
],
];
$qty = $this->_webApiCall($serviceInfo);
$qty = $this->_webApiCall(
$serviceInfo,
['bulkUuid' => self::TEST_UUID, 'status' => OperationInterface::STATUS_TYPE_OPEN]
);
$this->assertEquals(2, $qty);
}
}

0 comments on commit 9ce49c4

Please sign in to comment.