File tree 3 files changed +5
-5
lines changed
tests/Unit/Models/PlacementGroups
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class HetznerAPIClient
31
31
/**
32
32
* Version of the API Client.
33
33
*/
34
- const VERSION = '2.7.2 ' ;
34
+ const VERSION = '2.8.0 ' ;
35
35
36
36
const MAX_ENTITIES_PER_PAGE = 50 ;
37
37
Original file line number Diff line number Diff line change @@ -71,14 +71,14 @@ public function list(?RequestOpts $requestOpts = null): ?APIResponse
71
71
*
72
72
* @see https://docs.hetzner.cloud/#placement-groups-get-a-PlacementGroup
73
73
*
74
- * @param int $placementGroupId
74
+ * @param int $id
75
75
* @return ?PlacementGroup
76
76
*
77
77
* @throws \LKDev\HetznerCloud\APIException
78
78
*/
79
- public function getById (int $ placementGroupId ): ?PlacementGroup
79
+ public function getById (int $ id ): ?PlacementGroup
80
80
{
81
- $ response = $ this ->httpClient ->get ('placement_group / ' .$ placementGroupId );
81
+ $ response = $ this ->httpClient ->get ('placement_groups / ' .$ id );
82
82
if (! HetznerAPIClient::hasError ($ response )) {
83
83
return PlacementGroup::parse (json_decode ((string ) $ response ->getBody ())->placement_group );
84
84
}
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ public function testGet()
82
82
83
83
$ this ->assertEmpty ($ placement_group ->labels );
84
84
85
- $ this ->assertLastRequestEquals ('GET ' , '/placement_groups/4711 ' );
85
+ $ this ->assertLastRequestEquals ('GET ' , '/placement_groups/4862 ' );
86
86
}
87
87
88
88
public function testBasicCreate ()
You can’t perform that action at this time.
0 commit comments