mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +00:00
53 lines
1.4 KiB
PHP
Executable File
53 lines
1.4 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* Jingga
|
|
*
|
|
* PHP Version 8.2
|
|
*
|
|
* @package tests
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 2.0
|
|
* @version 1.0.0
|
|
* @link https://jingga.app
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace phpOMS\tests\phpOMS\Model\Message;
|
|
|
|
use phpOMS\Model\Message\DomAction;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
final class DomActionTest extends \PHPUnit\Framework\TestCase
|
|
{
|
|
#[\PHPUnit\Framework\Attributes\Group('framework')]
|
|
#[\PHPUnit\Framework\Attributes\CoversNothing]
|
|
public function testEnumCount() : void
|
|
{
|
|
self::assertCount(9, DomAction::getConstants());
|
|
}
|
|
|
|
#[\PHPUnit\Framework\Attributes\Group('framework')]
|
|
#[\PHPUnit\Framework\Attributes\CoversNothing]
|
|
public function testUnique() : void
|
|
{
|
|
self::assertEquals(DomAction::getConstants(), \array_unique(DomAction::getConstants()));
|
|
}
|
|
|
|
#[\PHPUnit\Framework\Attributes\Group('framework')]
|
|
#[\PHPUnit\Framework\Attributes\CoversNothing]
|
|
public function testEnums() : void
|
|
{
|
|
self::assertEquals(0, DomAction::CREATE_BEFORE);
|
|
self::assertEquals(1, DomAction::CREATE_AFTER);
|
|
self::assertEquals(2, DomAction::DELETE);
|
|
self::assertEquals(3, DomAction::REPLACE);
|
|
self::assertEquals(4, DomAction::MODIFY);
|
|
self::assertEquals(5, DomAction::SHOW);
|
|
self::assertEquals(6, DomAction::HIDE);
|
|
self::assertEquals(7, DomAction::ACTIVATE);
|
|
self::assertEquals(8, DomAction::DEACTIVATE);
|
|
}
|
|
}
|