[ 'resourcePath' => $resourcePath, 'httpMethod' => Request::HTTP_METHOD_GET, ], 'soap' => [ 'service' => self::SERVICE_NAME, 'serviceVersion' => 'V1', 'operation' => self::SERVICE_NAME . self::GET_COUNT_OPERATION_NAME, ], ]; $actualOperationCount = $this->_webApiCall( $serviceInfo, ['bulkUuid' => $bulkUuid, 'status' => $status] ); $this->assertEquals($expectedOperationCount, $actualOperationCount); } /** * @return array */ public function getBulkOperationCountDataProvider(): array { return [ 'Completed operations' => [ 'bulk-uuid-searchable-6', 1, OperationInterface::STATUS_TYPE_COMPLETE, ], 'Failed operations, can try to perform again' => [ 'bulk-uuid-searchable-6', 1, OperationInterface::STATUS_TYPE_RETRIABLY_FAILED, ], 'Failed operations. Must change something to retry' => [ 'bulk-uuid-searchable-6', 1, OperationInterface::STATUS_TYPE_NOT_RETRIABLY_FAILED, ], 'Opened operations' => [ 'bulk-uuid-searchable-6', 2, OperationInterface::STATUS_TYPE_OPEN, ], 'Rejected operations' => [ 'bulk-uuid-searchable-6', 1, OperationInterface::STATUS_TYPE_REJECTED, ], 'Not started scheduled operations by open status' => [ 'bulk-uuid-searchable-7', 0, OperationInterface::STATUS_TYPE_OPEN, ], ]; } }