File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
tests/Unit/Models/PlacementGroups Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class HetznerAPIClient
3131 /**
3232 * Version of the API Client.
3333 */
34- const VERSION = '2.7.2 ' ;
34+ const VERSION = '2.8.0 ' ;
3535
3636 const MAX_ENTITIES_PER_PAGE = 50 ;
3737
Original file line number Diff line number Diff line change @@ -71,14 +71,14 @@ public function list(?RequestOpts $requestOpts = null): ?APIResponse
7171 *
7272 * @see https://docs.hetzner.cloud/#placement-groups-get-a-PlacementGroup
7373 *
74- * @param int $placementGroupId
74+ * @param int $id
7575 * @return ?PlacementGroup
7676 *
7777 * @throws \LKDev\HetznerCloud\APIException
7878 */
79- public function getById (int $ placementGroupId ): ?PlacementGroup
79+ public function getById (int $ id ): ?PlacementGroup
8080 {
81- $ response = $ this ->httpClient ->get ('placement_group / ' .$ placementGroupId );
81+ $ response = $ this ->httpClient ->get ('placement_groups / ' .$ id );
8282 if (! HetznerAPIClient::hasError ($ response )) {
8383 return PlacementGroup::parse (json_decode ((string ) $ response ->getBody ())->placement_group );
8484 }
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ public function testGet()
8282
8383 $ this ->assertEmpty ($ placement_group ->labels );
8484
85- $ this ->assertLastRequestEquals ('GET ' , '/placement_groups/4711 ' );
85+ $ this ->assertLastRequestEquals ('GET ' , '/placement_groups/4862 ' );
8686 }
8787
8888 public function testBasicCreate ()
You can’t perform that action at this time.
0 commit comments