mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-12 02:08:40 +00:00
Some checks failed
CI / general_module_workflow_php (push) Has been cancelled
42 lines
1.2 KiB
PHP
Executable File
42 lines
1.2 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 phpOMS\tests\Localization\Defaults;
|
|
|
|
require_once __DIR__ . '/../../Autoloader.php';
|
|
|
|
use phpOMS\Localization\Defaults\Country;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
#[\PHPUnit\Framework\Attributes\CoversClass(\phpOMS\Localization\Defaults\Country::class)]
|
|
#[\PHPUnit\Framework\Attributes\TestDox('phpOMS\tests\Localization\Defaults\CountryTest: Country database model')]
|
|
final class CountryTest extends \PHPUnit\Framework\TestCase
|
|
{
|
|
#[\PHPUnit\Framework\Attributes\Group('framework')]
|
|
#[\PHPUnit\Framework\Attributes\TestDox('The model has the expected member variables and default values')]
|
|
public function testDefaults() : void
|
|
{
|
|
$obj = new Country();
|
|
self::assertEquals(0, $obj->id);
|
|
self::assertEquals('', $obj->getName());
|
|
self::assertEquals('', $obj->getCode2());
|
|
self::assertEquals('', $obj->getCode3());
|
|
self::assertEquals(0, $obj->getNumeric());
|
|
self::assertEquals('', $obj->getSubdevision());
|
|
self::assertFalse($obj->isDeveloped());
|
|
}
|
|
}
|