mirror of
https://github.com/Karaka-Management/oms-Accounting.git
synced 2026-01-12 13:58:40 +00:00
57 lines
1007 B
PHP
Executable File
57 lines
1007 B
PHP
Executable File
<?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\Accounting\tests\Models;
|
|
|
|
use Modules\Accounting\Models\Balance;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
final class BalanceTest extends \PHPUnit\Framework\TestCase
|
|
{
|
|
private Balance $balance;
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
protected function setUp() : void
|
|
{
|
|
$this->balance = new Balance();
|
|
}
|
|
|
|
/**
|
|
* @covers Modules\Accounting\Models\Balance
|
|
* @group module
|
|
*/
|
|
public function testDefault() : void
|
|
{
|
|
self::assertEquals(0, $this->balance->id);
|
|
}
|
|
|
|
/**
|
|
* @covers Modules\Accounting\Models\Balance
|
|
* @group module
|
|
*/
|
|
public function testSerialize() : void
|
|
{
|
|
self::assertEquals(
|
|
[
|
|
'id' => 0,
|
|
],
|
|
$this->balance->jsonSerialize()
|
|
);
|
|
}
|
|
}
|