oms-Accounting/tests/Models/AccountAbstractTest.php
Dennis Eichhorn 94a4855b91
Some checks failed
Image optimization / general_image_workflow (push) Has been cancelled
CI / general_module_workflow_php (push) Has been cancelled
CI / general_module_workflow_js (push) Has been cancelled
fix version and bugs
2024-05-21 00:09:05 +02:00

44 lines
994 B
PHP
Executable File

<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package tests
* @copyright Dennis Eichhorn
* @license OMS License 2.2
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
namespace Modules\Accounting\tests\Models;
use Modules\Accounting\Models\AccountAbstract;
/**
* @internal
*/
#[\PHPUnit\Framework\Attributes\TestDox('Modules\Accounting\tests\Models\AccountAbstractTest: Account abstraction')]
final class AccountAbstractTest extends \PHPUnit\Framework\TestCase
{
private $class = null;
/**
* {@inheritdoc}
*/
protected function setUp() : void
{
$this->class = new class() extends AccountAbstract {
};
}
public function testDefault() : void
{
self::assertEquals(0, $this->class->id);
self::assertNull($this->class->summaryAccount);
self::assertNull($this->class->getEntryById(0));
self::assertEquals([], $this->class->getEntriesByDate(new \DateTime()));
}
}