Skip to content

A free open source IT asset/license management system

Formatted tests via pint

snipebf8082f0b976
diff --git a/tests/Unit/AssetModelTest.php b/tests/Unit/AssetModelTest.php
index 9c03d0fde7..eb5a8341ba 100644
--- a/tests/Unit/AssetModelTest.php
+++ b/tests/Unit/AssetModelTest.php
@@ -26,7 +26,8 @@ class AssetModelTest extends TestCase
public function test_percent_remaining_returns_zero_when_no_assets_are_available()
{
- $model = new class extends AssetModel {
+ $model = new class extends AssetModel
+ {
public function availableAssets()
{
return new class
@@ -55,7 +56,8 @@ class AssetModelTest extends TestCase
public function test_percent_remaining_returns_expected_ratio_for_mixed_availability()
{
- $model = new class extends AssetModel {
+ $model = new class extends AssetModel
+ {
public function availableAssets()
{
return new class
@@ -84,7 +86,8 @@ class AssetModelTest extends TestCase
public function test_percent_remaining_returns_one_hundred_when_all_assets_are_available()
{
- $model = new class extends AssetModel {
+ $model = new class extends AssetModel
+ {
public function availableAssets()
{
return new class
diff --git a/tests/Unit/ComponentTest.php b/tests/Unit/ComponentTest.php
index 4efdfea437..1b5ba36545 100644
--- a/tests/Unit/ComponentTest.php
+++ b/tests/Unit/ComponentTest.php
@@ -100,7 +100,8 @@ class ComponentTest extends TestCase
public function test_percent_remaining_returns_zero_when_quantity_is_zero()
{
- $component = new class extends Component {
+ $component = new class extends Component
+ {
public int $remaining = 99;
public function numRemaining()
@@ -115,7 +116,8 @@ class ComponentTest extends TestCase
public function test_percent_remaining_returns_expected_available_ratio()
{
- $component = new class extends Component {
+ $component = new class extends Component
+ {
public int $remaining = 3;
public function numRemaining()
@@ -130,7 +132,8 @@ class ComponentTest extends TestCase
public function test_percent_remaining_clamps_to_bounds()
{
- $component = new class extends Component {
+ $component = new class extends Component
+ {
public int $remaining = -5;
public function numRemaining()
diff --git a/tests/Unit/Models/LicenseTest.php b/tests/Unit/Models/LicenseTest.php
index 3249ebb929..08db3e33e4 100644
--- a/tests/Unit/Models/LicenseTest.php
+++ b/tests/Unit/Models/LicenseTest.php
@@ -53,7 +53,8 @@ class LicenseTest extends TestCase
public function test_percent_remaining_returns_zero_when_seats_are_zero()
{
- $license = new class extends License {
+ $license = new class extends License
+ {
public int $remaining = 8;
public function remaincount(): int
@@ -68,7 +69,8 @@ class LicenseTest extends TestCase
public function test_percent_remaining_returns_expected_available_ratio()
{
- $license = new class extends License {
+ $license = new class extends License
+ {
public int $remaining = 6;
public function remaincount(): int
@@ -83,7 +85,8 @@ class LicenseTest extends TestCase
public function test_percent_remaining_clamps_remaining_to_valid_bounds()
{
- $license = new class extends License {
+ $license = new class extends License
+ {
public int $remaining = -3;
public function remaincount(): int