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); + } +}