mirror of
https://github.com/Karaka-Management/oms-Accounting.git
synced 2026-01-11 21:38:40 +00:00
58 lines
1.0 KiB
PHP
Executable File
58 lines
1.0 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* Karaka
|
|
*
|
|
* PHP Version 8.1
|
|
*
|
|
* @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\Creditor;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
final class CreditorTest extends \PHPUnit\Framework\TestCase
|
|
{
|
|
private Creditor $creditor;
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
protected function setUp() : void
|
|
{
|
|
$this->creditor = new Creditor();
|
|
}
|
|
|
|
/**
|
|
* @covers Modules\Accounting\Models\Creditor
|
|
* @group module
|
|
*/
|
|
public function testDefault() : void
|
|
{
|
|
self::assertEquals(0, $this->creditor->getId());
|
|
}
|
|
|
|
/**
|
|
* @covers Modules\Accounting\Models\Creditor
|
|
* @group module
|
|
*/
|
|
public function testSerialize() : void
|
|
{
|
|
self::assertEquals(
|
|
[
|
|
'id' => 0,
|
|
'account' => null,
|
|
],
|
|
$this->creditor->jsonSerialize()
|
|
);
|
|
}
|
|
}
|