oms-Accounting/tests/Models/DebitorTest.php
2022-02-19 13:57:38 +01:00

58 lines
1.0 KiB
PHP

<?php
/**
* Karaka
*
* PHP Version 8.0
*
* @package tests
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://karaka.app
*/
declare(strict_types=1);
namespace Modules\Accounting\tests\Models;
use Modules\Accounting\Models\Debitor;
/**
* @internal
*/
final class DebitorTest extends \PHPUnit\Framework\TestCase
{
private Debitor $debitor;
/**
* {@inheritdoc}
*/
protected function setUp() : void
{
$this->debitor = new Debitor();
}
/**
* @covers Modules\Accounting\Models\Debitor
* @group module
*/
public function testDefault() : void
{
self::assertEquals(0, $this->debitor->getId());
}
/**
* @covers Modules\Accounting\Models\Debitor
* @group module
*/
public function testSerialize() : void
{
self::assertEquals(
[
'id' => 0,
'account' => null,
],
$this->debitor->jsonSerialize()
);
}
}