mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-12 10:18:39 +00:00
36 lines
1.0 KiB
PHP
36 lines
1.0 KiB
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.2
|
|
*
|
|
* @package tests
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link http://website.orange-management.de
|
|
*/
|
|
|
|
namespace phpOMS\tests\phpOMS\Model\Message;
|
|
|
|
use phpOMS\Model\Message\DomAction;
|
|
|
|
class DomActionTest extends \PHPUnit\Framework\TestCase
|
|
{
|
|
public function testEnums()
|
|
{
|
|
self::assertEquals(9, count(DomAction::getConstants()));
|
|
self::assertEquals(DomAction::getConstants(), array_unique(DomAction::getConstants()));
|
|
|
|
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);
|
|
}
|
|
}
|