oms-Admin/tests/Models/AccountTest.php

50 lines
1.0 KiB
PHP
Executable File

<?php
/**
* Karaka
*
* 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\Admin\tests\Models;
use Modules\Admin\Models\Account;
/**
* @testdox Modules\Admin\tests\Models\AccountTest: Account model
*
* @internal
*/
final class AccountTest extends \PHPUnit\Framework\TestCase
{
/**
* @testdox The account has the expected default values after initialization
* @covers Modules\Admin\Models\Account
* @group module
*/
public function testDefault() : void
{
$account = new Account();
self::assertEquals(0, $account->tries);
}
/**
* @testdox The login tries can be set and returned
* @covers Modules\Admin\Models\Account
* @group module
*/
public function testLoginTriesInputOutput() : void
{
$account = new Account();
$account->tries = 3;
self::assertEquals(3, $account->tries);
}
}