@@ -97,7 +97,7 @@ public function testCreateDeploymentSuccess()
9797 $ this ->nerdGraphClientMock ->expects ($ this ->once ())
9898 ->method ('query ' )
9999 ->with (
100- $ this ->stringContains ('mutation CreateDeployment ' ),
100+ $ this ->stringContains ('mutation createDeployment ' ),
101101 $ this ->callback (function ($ variables ) use (
102102 $ entityGuid ,
103103 $ description ,
@@ -125,7 +125,7 @@ public function testCreateDeploymentSuccess()
125125 ->method ('info ' )
126126 ->with ('NerdGraph deployment created successfully ' );
127127
128- $ result = $ this ->deploymentTracker ->createDeployment (
128+ $ result = $ this ->deploymentTracker ->setDeployment (
129129 $ description ,
130130 $ changelog ,
131131 $ user ,
@@ -175,7 +175,7 @@ public function testCreateDeploymentWithMinimalParameters()
175175 $ this ->nerdGraphClientMock ->expects ($ this ->once ())
176176 ->method ('query ' )
177177 ->with (
178- $ this ->stringContains ('mutation CreateDeployment ' ),
178+ $ this ->stringContains ('mutation createDeployment ' ),
179179 $ this ->callback (function ($ variables ) use ($ entityGuid , $ description ) {
180180 return isset ($ variables ['deployment ' ]) &&
181181 $ variables ['deployment ' ]['entityGuid ' ] === $ entityGuid &&
@@ -190,7 +190,7 @@ public function testCreateDeploymentWithMinimalParameters()
190190 ->method ('info ' )
191191 ->with ('NerdGraph deployment created successfully ' );
192192
193- $ result = $ this ->deploymentTracker ->createDeployment ($ description );
193+ $ result = $ this ->deploymentTracker ->setDeployment ($ description );
194194
195195 $ this ->assertIsArray ($ result );
196196 $ this ->assertArrayHasKey ('deploymentId ' , $ result );
@@ -236,7 +236,7 @@ public function testCreateDeploymentEntityGuidFallbackFromAppName()
236236 $ this ->nerdGraphClientMock ->expects ($ this ->once ())
237237 ->method ('query ' )
238238 ->with (
239- $ this ->stringContains ('mutation CreateDeployment ' ),
239+ $ this ->stringContains ('mutation createDeployment ' ),
240240 $ this ->callback (function ($ variables ) use ($ resolvedGuid , $ description ) {
241241 return isset ($ variables ['deployment ' ]) &&
242242 $ variables ['deployment ' ]['entityGuid ' ] === $ resolvedGuid &&
@@ -248,7 +248,7 @@ public function testCreateDeploymentEntityGuidFallbackFromAppName()
248248 $ this ->loggerMock ->expects ($ this ->exactly (2 ))
249249 ->method ('info ' );
250250
251- $ result = $ this ->deploymentTracker ->createDeployment ($ description );
251+ $ result = $ this ->deploymentTracker ->setDeployment ($ description );
252252
253253 $ this ->assertIsArray ($ result );
254254 $ this ->assertArrayHasKey ('deploymentId ' , $ result );
@@ -294,7 +294,7 @@ public function testCreateDeploymentEntityGuidFallbackFromAppId()
294294 $ this ->nerdGraphClientMock ->expects ($ this ->once ())
295295 ->method ('query ' )
296296 ->with (
297- $ this ->stringContains ('mutation CreateDeployment ' ),
297+ $ this ->stringContains ('mutation createDeployment ' ),
298298 $ this ->callback (function ($ variables ) use ($ resolvedGuid , $ description ) {
299299 return isset ($ variables ['deployment ' ]) &&
300300 $ variables ['deployment ' ]['entityGuid ' ] === $ resolvedGuid &&
@@ -306,7 +306,7 @@ public function testCreateDeploymentEntityGuidFallbackFromAppId()
306306 $ this ->loggerMock ->expects ($ this ->exactly (2 ))
307307 ->method ('info ' );
308308
309- $ result = $ this ->deploymentTracker ->createDeployment ($ description );
309+ $ result = $ this ->deploymentTracker ->setDeployment ($ description );
310310
311311 $ this ->assertIsArray ($ result );
312312 $ this ->assertArrayHasKey ('deploymentId ' , $ result );
@@ -334,7 +334,7 @@ public function testCreateDeploymentFailureMissingEntityGuid()
334334 $ this ->loggerMock ->expects ($ this ->atLeastOnce ())
335335 ->method ('error ' );
336336
337- $ result = $ this ->deploymentTracker ->createDeployment ($ description );
337+ $ result = $ this ->deploymentTracker ->setDeployment ($ description );
338338
339339 $ this ->assertFalse ($ result );
340340 }
@@ -366,7 +366,7 @@ public function testCreateDeploymentFailureEntityGuidResolutionFailed()
366366
367367 $ this ->loggerMock ->expects ($ this ->atLeastOnce ())->method ('error ' );
368368
369- $ result = $ this ->deploymentTracker ->createDeployment ($ description );
369+ $ result = $ this ->deploymentTracker ->setDeployment ($ description );
370370
371371 $ this ->assertFalse ($ result );
372372 }
@@ -396,7 +396,7 @@ public function testCreateDeploymentWithGraphQLErrors()
396396
397397 $ this ->loggerMock ->expects ($ this ->atLeastOnce ())->method ('error ' );
398398
399- $ result = $ this ->deploymentTracker ->createDeployment ($ description );
399+ $ result = $ this ->deploymentTracker ->setDeployment ($ description );
400400
401401 $ this ->assertFalse ($ result );
402402 }
@@ -419,7 +419,7 @@ public function testCreateDeploymentWithEmptyResponse()
419419
420420 $ this ->loggerMock ->expects ($ this ->atLeastOnce ())->method ('error ' );
421421
422- $ result = $ this ->deploymentTracker ->createDeployment ($ description );
422+ $ result = $ this ->deploymentTracker ->setDeployment ($ description );
423423
424424 $ this ->assertFalse ($ result );
425425 }
@@ -448,7 +448,7 @@ public function testCreateDeploymentWithMalformedResponse()
448448
449449 $ this ->loggerMock ->expects ($ this ->atLeastOnce ())->method ('error ' );
450450
451- $ result = $ this ->deploymentTracker ->createDeployment ($ description );
451+ $ result = $ this ->deploymentTracker ->setDeployment ($ description );
452452
453453 $ this ->assertFalse ($ result );
454454 }
@@ -471,7 +471,7 @@ public function testCreateDeploymentWithNetworkFailure()
471471
472472 $ this ->loggerMock ->expects ($ this ->atLeastOnce ())->method ('error ' );
473473
474- $ result = $ this ->deploymentTracker ->createDeployment ($ description );
474+ $ result = $ this ->deploymentTracker ->setDeployment ($ description );
475475
476476 $ this ->assertFalse ($ result );
477477 }
@@ -502,7 +502,7 @@ public function testCreateDeploymentWithSpecialCharacters()
502502 $ this ->nerdGraphClientMock ->expects ($ this ->once ())
503503 ->method ('query ' )
504504 ->with (
505- $ this ->stringContains ('mutation CreateDeployment ' ),
505+ $ this ->stringContains ('mutation createDeployment ' ),
506506 $ this ->callback (function ($ variables ) use ($ entityGuid , $ description ) {
507507 return isset ($ variables ['deployment ' ]) &&
508508 $ variables ['deployment ' ]['entityGuid ' ] === $ entityGuid &&
@@ -515,7 +515,7 @@ public function testCreateDeploymentWithSpecialCharacters()
515515 ->method ('info ' )
516516 ->with ('NerdGraph deployment created successfully ' );
517517
518- $ result = $ this ->deploymentTracker ->createDeployment ($ description );
518+ $ result = $ this ->deploymentTracker ->setDeployment ($ description );
519519
520520 $ this ->assertIsArray ($ result );
521521 $ this ->assertArrayHasKey ('deploymentId ' , $ result );
@@ -556,7 +556,7 @@ public function testCreateDeploymentWithLongParameters()
556556 ->method ('info ' )
557557 ->with ('NerdGraph deployment created successfully ' );
558558
559- $ result = $ this ->deploymentTracker ->createDeployment ($ description , $ changelog , $ user );
559+ $ result = $ this ->deploymentTracker ->setDeployment ($ description , $ changelog , $ user );
560560
561561 $ this ->assertIsArray ($ result );
562562 $ this ->assertArrayHasKey ('deploymentId ' , $ result );
@@ -592,7 +592,7 @@ public function testCreateDeploymentMutationStructure()
592592 $ this ->nerdGraphClientMock ->expects ($ this ->once ())
593593 ->method ('query ' )
594594 ->with (
595- $ this ->stringContains ('mutation CreateDeployment ' ),
595+ $ this ->stringContains ('mutation createDeployment ' ),
596596 $ this ->callback (function ($ variables ) use (
597597 $ entityGuid ,
598598 $ description ,
@@ -620,7 +620,7 @@ public function testCreateDeploymentMutationStructure()
620620 ->method ('info ' )
621621 ->with ('NerdGraph deployment created successfully ' );
622622
623- $ result = $ this ->deploymentTracker ->createDeployment (
623+ $ result = $ this ->deploymentTracker ->setDeployment (
624624 $ description ,
625625 $ changelog ,
626626 $ user ,
0 commit comments