mirror of
https://github.com/Karaka-Management/oms-Billing.git
synced 2026-01-11 15:18:42 +00:00
test fixes
This commit is contained in:
parent
80b1e6907a
commit
06c4106b1a
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
52
tests/Models/NullSubscriptionTest.php
Normal file
52
tests/Models/NullSubscriptionTest.php
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
<?php
|
||||
/**
|
||||
* Jingga
|
||||
*
|
||||
* PHP Version 8.1
|
||||
*
|
||||
* @package tests
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Modules\Billing\tests\Models;
|
||||
|
||||
use Modules\Billing\Models\NullSubscription;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class NullSubscriptionTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @covers Modules\Billing\Models\NullSubscription
|
||||
* @group framework
|
||||
*/
|
||||
public function testNull() : void
|
||||
{
|
||||
self::assertInstanceOf('\Modules\Billing\Models\Subscription', new NullSubscription());
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Billing\Models\NullSubscription
|
||||
* @group framework
|
||||
*/
|
||||
public function testId() : void
|
||||
{
|
||||
$null = new NullSubscription(2);
|
||||
self::assertEquals(2, $null->id);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Billing\Models\NullSubscription
|
||||
* @group module
|
||||
*/
|
||||
public function testJsonSerialize() : void
|
||||
{
|
||||
$null = new NullSubscription(2);
|
||||
self::assertEquals(['id' => 2], $null);
|
||||
}
|
||||
}
|
||||
52
tests/Models/Price/NullPriceTest.php
Normal file
52
tests/Models/Price/NullPriceTest.php
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
<?php
|
||||
/**
|
||||
* Jingga
|
||||
*
|
||||
* PHP Version 8.1
|
||||
*
|
||||
* @package tests
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Modules\Billing\tests\Models\Price;
|
||||
|
||||
use Modules\Billing\Models\Price\NullPrice;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class NullPriceTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @covers Modules\Billing\Models\Price\NullPrice
|
||||
* @group module
|
||||
*/
|
||||
public function testNull() : void
|
||||
{
|
||||
self::assertInstanceOf('\Modules\Billing\Models\Price\Price', new NullPrice());
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Billing\Models\Price\NullPrice
|
||||
* @group module
|
||||
*/
|
||||
public function testId() : void
|
||||
{
|
||||
$null = new NullPrice(2);
|
||||
self::assertEquals(2, $null->id);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Billing\Models\Price\NullPrice
|
||||
* @group module
|
||||
*/
|
||||
public function testJsonSerialize() : void
|
||||
{
|
||||
$null = new NullPrice(2);
|
||||
self::assertEquals(['id' => 2], $null);
|
||||
}
|
||||
}
|
||||
52
tests/Models/Tax/NullTaxCombinationTest.php
Normal file
52
tests/Models/Tax/NullTaxCombinationTest.php
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
<?php
|
||||
/**
|
||||
* Jingga
|
||||
*
|
||||
* PHP Version 8.1
|
||||
*
|
||||
* @package tests
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Modules\Billing\tests\Models\Tax;
|
||||
|
||||
use Modules\Billing\Models\Tax\NullTaxCombination;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class NullTaxCombinationTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @covers Modules\Billing\Models\Tax\NullTaxCombination
|
||||
* @group module
|
||||
*/
|
||||
public function testNull() : void
|
||||
{
|
||||
self::assertInstanceOf('\Modules\Billing\Models\Tax\TaxCombination', new NullTaxCombination());
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Billing\Models\Tax\NullTaxCombination
|
||||
* @group module
|
||||
*/
|
||||
public function testId() : void
|
||||
{
|
||||
$null = new NullTaxCombination(2);
|
||||
self::assertEquals(2, $null->id);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Modules\Billing\Models\Tax\NullTaxCombination
|
||||
* @group module
|
||||
*/
|
||||
public function testJsonSerialize() : void
|
||||
{
|
||||
$null = new NullTaxCombination(2);
|
||||
self::assertEquals(['id' => 2], $null);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user