@@ -365,11 +365,11 @@ public function shouldUpdateLabel(): void
365365 $ api = $ this ->getApiMock ();
366366 $ api ->expects ($ this ->once ())
367367 ->method ('put ' )
368- ->with ('groups/1/labels ' , [' name ' => ' bug ' , 'new_name ' => 'big-bug ' , 'color ' => '#00ffff ' ])
368+ ->with ('groups/1/labels/123 ' , ['new_name ' => 'big-bug ' , 'color ' => '#00ffff ' ])
369369 ->will ($ this ->returnValue ($ expectedArray ))
370370 ;
371371
372- $ this ->assertEquals ($ expectedArray , $ api ->updateLabel (1 , [ ' name ' => ' bug ' , 'new_name ' => 'big-bug ' , 'color ' => '#00ffff ' ]));
372+ $ this ->assertEquals ($ expectedArray , $ api ->updateLabel (1 , 123 , [ 'new_name ' => 'big-bug ' , 'color ' => '#00ffff ' ]));
373373 }
374374
375375 /**
@@ -382,11 +382,11 @@ public function shouldRemoveLabel(): void
382382 $ api = $ this ->getApiMock ();
383383 $ api ->expects ($ this ->once ())
384384 ->method ('delete ' )
385- ->with ('groups/1/labels ' , [' name ' => ' bug ' ])
385+ ->with ('groups/1/labels/456 ' , [])
386386 ->will ($ this ->returnValue ($ expectedBool ))
387387 ;
388388
389- $ this ->assertEquals ($ expectedBool , $ api ->removeLabel (1 , ' bug ' ));
389+ $ this ->assertEquals ($ expectedBool , $ api ->removeLabel (1 , 456 ));
390390 }
391391
392392 public function shouldGetVariables (): void
0 commit comments