From 06c4106b1a61a748496a7e2629ad54da638f4a7e Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 16 Oct 2023 22:23:57 +0000 Subject: [PATCH] test fixes --- tests/Models/NullBillElementTest.php | 10 ++++ tests/Models/NullBillTest.php | 10 ++++ tests/Models/NullBillTypeTest.php | 10 ++++ tests/Models/NullSubscriptionTest.php | 52 +++++++++++++++++++++ tests/Models/Price/NullPriceTest.php | 52 +++++++++++++++++++++ tests/Models/Tax/NullTaxCombinationTest.php | 52 +++++++++++++++++++++ 6 files changed, 186 insertions(+) create mode 100644 tests/Models/NullSubscriptionTest.php create mode 100644 tests/Models/Price/NullPriceTest.php create mode 100644 tests/Models/Tax/NullTaxCombinationTest.php diff --git a/tests/Models/NullBillElementTest.php b/tests/Models/NullBillElementTest.php index 9db5122..6f52e97 100755 --- a/tests/Models/NullBillElementTest.php +++ b/tests/Models/NullBillElementTest.php @@ -39,4 +39,14 @@ final class NullBillElementTest extends \PHPUnit\Framework\TestCase $null = new NullBillElement(2); self::assertEquals(2, $null->id); } + + /** + * @covers Modules\Billing\Models\NullBillElement + * @group module + */ + public function testJsonSerialize() : void + { + $null = new NullBillElement(2); + self::assertEquals(['id' => 2], $null); + } } diff --git a/tests/Models/NullBillTest.php b/tests/Models/NullBillTest.php index 7829489..8a3de0f 100755 --- a/tests/Models/NullBillTest.php +++ b/tests/Models/NullBillTest.php @@ -39,4 +39,14 @@ final class NullBillTest extends \PHPUnit\Framework\TestCase $null = new NullBill(2); self::assertEquals(2, $null->id); } + + /** + * @covers Modules\Billing\Models\NullBill + * @group module + */ + public function testJsonSerialize() : void + { + $null = new NullBill(2); + self::assertEquals(['id' => 2], $null); + } } diff --git a/tests/Models/NullBillTypeTest.php b/tests/Models/NullBillTypeTest.php index 4e04f20..cdfdddf 100755 --- a/tests/Models/NullBillTypeTest.php +++ b/tests/Models/NullBillTypeTest.php @@ -39,4 +39,14 @@ final class NullBillTypeTest extends \PHPUnit\Framework\TestCase $null = new NullBillType(2); self::assertEquals(2, $null->id); } + + /** + * @covers Modules\Billing\Models\NullBillType + * @group module + */ + public function testJsonSerialize() : void + { + $null = new NullBillType(2); + self::assertEquals(['id' => 2], $null); + } } diff --git a/tests/Models/NullSubscriptionTest.php b/tests/Models/NullSubscriptionTest.php new file mode 100644 index 0000000..dd6a430 --- /dev/null +++ b/tests/Models/NullSubscriptionTest.php @@ -0,0 +1,52 @@ +id); + } + + /** + * @covers Modules\Billing\Models\NullSubscription + * @group module + */ + public function testJsonSerialize() : void + { + $null = new NullSubscription(2); + self::assertEquals(['id' => 2], $null); + } +} diff --git a/tests/Models/Price/NullPriceTest.php b/tests/Models/Price/NullPriceTest.php new file mode 100644 index 0000000..dcd1609 --- /dev/null +++ b/tests/Models/Price/NullPriceTest.php @@ -0,0 +1,52 @@ +id); + } + + /** + * @covers Modules\Billing\Models\Price\NullPrice + * @group module + */ + public function testJsonSerialize() : void + { + $null = new NullPrice(2); + self::assertEquals(['id' => 2], $null); + } +} diff --git a/tests/Models/Tax/NullTaxCombinationTest.php b/tests/Models/Tax/NullTaxCombinationTest.php new file mode 100644 index 0000000..d93caec --- /dev/null +++ b/tests/Models/Tax/NullTaxCombinationTest.php @@ -0,0 +1,52 @@ +id); + } + + /** + * @covers Modules\Billing\Models\Tax\NullTaxCombination + * @group module + */ + public function testJsonSerialize() : void + { + $null = new NullTaxCombination(2); + self::assertEquals(['id' => 2], $null); + } +}