Skip to content

Commit 81ff30a

Browse files
committed
Improve test coverage
1 parent d765499 commit 81ff30a

File tree

17 files changed

+150
-18
lines changed

17 files changed

+150
-18
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## master (XX.XX.XXXX)
44
+ Add `automount` and `format` Parameters to `LKDev\HetznerCloud\Models\Volumes\Volumes` - `create`
55
+ Add `created` property to `LKDev\HetznerCloud\Models\FloatingIps\FloatingIp`
6+
+ Improve test coverage
67

78
## 1.6.0 (08.05.2019)
89
+ Setting the UserAgent is now possible with `LKDev\HetznerCloud\HetznerAPIClient` - `setUserAgent()`

src/Models/Locations/Location.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ class Location extends Model
6464
public function __construct(
6565
int $id,
6666
string $name,
67-
string $description,
68-
string $country,
69-
string $city,
70-
float $latitude,
71-
float $longitude
67+
string $description=null,
68+
string $country=null,
69+
string $city=null,
70+
float $latitude=null,
71+
float $longitude=null
7272
) {
7373
$this->id = $id;
7474
$this->name = $name;
@@ -91,4 +91,4 @@ public static function parse($input)
9191
}
9292
return new self($input->id, $input->name, $input->description, $input->country, $input->city, $input->latitude, $input->longitude);
9393
}
94-
}
94+
}

tests/Unit/ApiResponseTest.php renamed to tests/Integration/ApiResponseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Time: 14:35
77
*/
88

9-
namespace Tests\Unit;
9+
namespace Tests\Integration;
1010

1111
use LKDev\HetznerCloud\APIResponse;
1212
use PHPUnit\Framework\TestCase;
File renamed without changes.

tests/Unit/Datacenters/DatacentersTest.php renamed to tests/Integration/Datacenters/DatacentersTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Time: 18:31
77
*/
88

9-
namespace Tests\Unit;
9+
namespace Tests\Integration;
1010

1111
use LKDev\HetznerCloud\Models\Datacenters\Datacenters;
1212
use Tests\TestCase;

tests/Unit/FloatingIPs/FloatingIPsTest.php renamed to tests/Integration/FloatingIPs/FloatingIPsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Time: 18:31
77
*/
88

9-
namespace Tests\Unit\FloatingIPs;
9+
namespace Tests\Integration\FloatingIPs;
1010

1111
use LKDev\HetznerCloud\Models\Datacenters\Datacenters;
1212
use LKDev\HetznerCloud\Models\FloatingIps\FloatingIps;

tests/Unit/FloatingIPs/FloatingIpTest.php renamed to tests/Integration/FloatingIPs/FloatingIpTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Time: 07:58
77
*/
88

9-
namespace Tests\Unit\FloatingIPs;
9+
namespace Tests\Integration\FloatingIPs;
1010

1111
use LKDev\HetznerCloud\Models\FloatingIps\FloatingIp;
1212
use LKDev\HetznerCloud\Models\FloatingIps\FloatingIps;

tests/Unit/ISO/ISOsTest.php renamed to tests/Integration/ISO/ISOsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Time: 18:31
77
*/
88

9-
namespace Tests\Unit;
9+
namespace Tests\Integration;
1010

1111
use LKDev\HetznerCloud\Models\Datacenters\Datacenters;
1212
use LKDev\HetznerCloud\Models\ISOs\ISOs;

tests/Unit/Images/ImagesTest.php renamed to tests/Integration/Images/ImagesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Time: 18:31
77
*/
88

9-
namespace Tests\Unit;
9+
namespace Tests\Integration;
1010

1111
use LKDev\HetznerCloud\Models\Datacenters\Datacenters;
1212
use LKDev\HetznerCloud\Models\Images\Images;

tests/Unit/Locations/LocationsTest.php renamed to tests/Integration/Locations/LocationsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Time: 18:31
77
*/
88

9-
namespace Tests\Unit;
9+
namespace Tests\Integration;
1010

1111
use LKDev\HetznerCloud\Models\Datacenters\Datacenters;
1212
use LKDev\HetznerCloud\Models\Locations\Locations;

0 commit comments

Comments
 (0)