@@ -83,7 +83,7 @@ class ParseCloudTests: XCTestCase { // swiftlint:disable:this type_body_length
8383
8484 func testCallFunctionCommand( ) throws {
8585 let cloud = Cloud ( functionJobName: " test " )
86- let command = cloud. callFunctionCommand ( )
86+ let command = cloud. runFunctionCommand ( )
8787 XCTAssertNotNil ( command)
8888 XCTAssertEqual ( command. path. urlComponent, " /functions/test " )
8989 XCTAssertEqual ( command. method, API . Method. POST)
@@ -93,7 +93,7 @@ class ParseCloudTests: XCTestCase { // swiftlint:disable:this type_body_length
9393
9494 func testCallFunctionWithArgsCommand( ) throws {
9595 let cloud = Cloud2 ( functionJobName: " test " , customKey: " parse " )
96- let command = cloud. callFunctionCommand ( )
96+ let command = cloud. runFunctionCommand ( )
9797 XCTAssertNotNil ( command)
9898 XCTAssertEqual ( command. path. urlComponent, " /functions/test " )
9999 XCTAssertEqual ( command. method, API . Method. POST)
@@ -115,7 +115,7 @@ class ParseCloudTests: XCTestCase { // swiftlint:disable:this type_body_length
115115 }
116116 do {
117117 let cloud = Cloud ( functionJobName: " test " )
118- let functionResponse = try cloud. callFunction ( )
118+ let functionResponse = try cloud. runFunction ( )
119119 XCTAssertEqual ( functionResponse, AnyCodable ( ) )
120120 } catch {
121121 XCTFail ( error. localizedDescription)
@@ -138,7 +138,7 @@ class ParseCloudTests: XCTestCase { // swiftlint:disable:this type_body_length
138138 }
139139 do {
140140 let cloud = Cloud ( functionJobName: " test " )
141- let functionResponse = try cloud. callFunction ( )
141+ let functionResponse = try cloud. runFunction ( )
142142 guard let resultAsDictionary = functionResponse. value as? [ String : String ] else {
143143 XCTFail ( " Should have casted result to dictionary " )
144144 return
@@ -166,7 +166,7 @@ class ParseCloudTests: XCTestCase { // swiftlint:disable:this type_body_length
166166 }
167167 do {
168168 let cloud = Cloud ( functionJobName: " test " )
169- _ = try cloud. callFunction ( )
169+ _ = try cloud. runFunction ( )
170170 XCTFail ( " Should have thrown ParseError " )
171171 } catch {
172172 if let error = error as? ParseError {
@@ -181,7 +181,7 @@ class ParseCloudTests: XCTestCase { // swiftlint:disable:this type_body_length
181181
182182 let expectation1 = XCTestExpectation ( description: " Logout user1 " )
183183 let cloud = Cloud ( functionJobName: " test " )
184- cloud. callFunction ( callbackQueue: callbackQueue) { result in
184+ cloud. runFunction ( callbackQueue: callbackQueue) { result in
185185
186186 switch result {
187187
@@ -239,7 +239,7 @@ class ParseCloudTests: XCTestCase { // swiftlint:disable:this type_body_length
239239
240240 let expectation1 = XCTestExpectation ( description: " Logout user1 " )
241241 let cloud = Cloud ( functionJobName: " test " )
242- cloud. callFunction ( callbackQueue: callbackQueue) { result in
242+ cloud. runFunction ( callbackQueue: callbackQueue) { result in
243243
244244 switch result {
245245
@@ -272,7 +272,7 @@ class ParseCloudTests: XCTestCase { // swiftlint:disable:this type_body_length
272272
273273 func testCallJobCommand( ) throws {
274274 let cloud = Cloud ( functionJobName: " test " )
275- let command = cloud. callJobCommand ( )
275+ let command = cloud. startJobCommand ( )
276276 XCTAssertNotNil ( command)
277277 XCTAssertEqual ( command. path. urlComponent, " /jobs/test " )
278278 XCTAssertEqual ( command. method, API . Method. POST)
@@ -282,7 +282,7 @@ class ParseCloudTests: XCTestCase { // swiftlint:disable:this type_body_length
282282
283283 func testCallJobWithArgsCommand( ) throws {
284284 let cloud = Cloud2 ( functionJobName: " test " , customKey: " parse " )
285- let command = cloud. callJobCommand ( )
285+ let command = cloud. startJobCommand ( )
286286 XCTAssertNotNil ( command)
287287 XCTAssertEqual ( command. path. urlComponent, " /jobs/test " )
288288 XCTAssertEqual ( command. method, API . Method. POST)
@@ -304,7 +304,7 @@ class ParseCloudTests: XCTestCase { // swiftlint:disable:this type_body_length
304304 }
305305 do {
306306 let cloud = Cloud ( functionJobName: " test " )
307- let functionResponse = try cloud. callJob ( )
307+ let functionResponse = try cloud. startJob ( )
308308 XCTAssertEqual ( functionResponse, AnyCodable ( ) )
309309 } catch {
310310 XCTFail ( error. localizedDescription)
@@ -325,7 +325,7 @@ class ParseCloudTests: XCTestCase { // swiftlint:disable:this type_body_length
325325 }
326326 do {
327327 let cloud = Cloud ( functionJobName: " test " )
328- let functionResponse = try cloud. callJob ( )
328+ let functionResponse = try cloud. startJob ( )
329329 guard let resultAsDictionary = functionResponse. value as? [ String : String ] else {
330330 XCTFail ( " Should have casted result to dictionary " )
331331 return
@@ -353,7 +353,7 @@ class ParseCloudTests: XCTestCase { // swiftlint:disable:this type_body_length
353353 }
354354 do {
355355 let cloud = Cloud ( functionJobName: " test " )
356- _ = try cloud. callJob ( )
356+ _ = try cloud. startJob ( )
357357 XCTFail ( " Should have thrown ParseError " )
358358 } catch {
359359 if let error = error as? ParseError {
@@ -368,7 +368,7 @@ class ParseCloudTests: XCTestCase { // swiftlint:disable:this type_body_length
368368
369369 let expectation1 = XCTestExpectation ( description: " Logout user1 " )
370370 let cloud = Cloud ( functionJobName: " test " )
371- cloud. callJob ( callbackQueue: callbackQueue) { result in
371+ cloud. startJob ( callbackQueue: callbackQueue) { result in
372372
373373 switch result {
374374
@@ -426,7 +426,7 @@ class ParseCloudTests: XCTestCase { // swiftlint:disable:this type_body_length
426426
427427 let expectation1 = XCTestExpectation ( description: " Logout user1 " )
428428 let cloud = Cloud ( functionJobName: " test " )
429- cloud. callJob ( callbackQueue: callbackQueue) { result in
429+ cloud. startJob ( callbackQueue: callbackQueue) { result in
430430
431431 switch result {
432432
0 commit comments