oms-Accounting/tests/Models/BatchPostingTest.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

45 lines
1.0 KiB
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\BatchPosting;
/**
* @internal
*/
#[\PHPUnit\Framework\Attributes\CoversClass(\Modules\Accounting\Models\BatchPosting::class)]
final class BatchPostingTest extends \PHPUnit\Framework\TestCase
{
private BatchPosting $batch;
/**
* {@inheritdoc}
*/
protected function setUp() : void
{
$this->batch = new BatchPosting();
}
#[\PHPUnit\Framework\Attributes\Group('module')]
public function testDefault() : void
{
self::assertEquals(0, $this->batch->id);
self::assertEquals(0, $this->batch->creator);
self::assertEquals('', $this->batch->description);
self::assertEquals(0, $this->batch->count());
self::assertInstanceOf('\DateTimeImmutable', $this->batch->created);
}
}