diff --git a/Models/CardType.php b/Models/CardType.php index 024ee13..6ecfad5 100755 --- a/Models/CardType.php +++ b/Models/CardType.php @@ -27,10 +27,16 @@ use phpOMS\Stdlib\Base\Enum; abstract class CardType extends Enum { public const TEXT = 1; /* Markdown -> Image, links, charts etc */ + public const CALENDAR = 2; + public const CALENDAR_EVENT = 4; + public const TASK = 8; + public const TASK_CHECKLIST = 16; + public const MEDIA = 32; + public const SURVEY = 64; } diff --git a/Models/KanbanBoard.php b/Models/KanbanBoard.php index 19fb16f..94c79b4 100755 --- a/Models/KanbanBoard.php +++ b/Models/KanbanBoard.php @@ -46,6 +46,7 @@ class KanbanBoard implements \JsonSerializable private int $status = BoardStatus::ACTIVE; private int $order = 0; + /** * Description. * diff --git a/Models/KanbanCard.php b/Models/KanbanCard.php index e561bec..c9365e3 100755 --- a/Models/KanbanCard.php +++ b/Models/KanbanCard.php @@ -47,6 +47,7 @@ class KanbanCard implements \JsonSerializable private int $status = CardStatus::ACTIVE; private int $type = CardType::TEXT; + /** * Description. * diff --git a/Models/KanbanCardComment.php b/Models/KanbanCardComment.php index 55c4836..a35fe2d 100755 --- a/Models/KanbanCardComment.php +++ b/Models/KanbanCardComment.php @@ -34,6 +34,7 @@ class KanbanCardComment implements \JsonSerializable * @since 1.0.0 */ protected int $id = 0; + /** * Description. * diff --git a/Models/PermissionState.php b/Models/PermissionState.php index 969f78a..562e979 100755 --- a/Models/PermissionState.php +++ b/Models/PermissionState.php @@ -27,6 +27,8 @@ use phpOMS\Stdlib\Base\Enum; abstract class PermissionState extends Enum { public const BOARD = 1; + public const CARD = 2; + public const KANBAN = 3; } diff --git a/tests/Admin/AdminTest.php b/tests/Admin/AdminTest.php index 3807967..8053be1 100755 --- a/tests/Admin/AdminTest.php +++ b/tests/Admin/AdminTest.php @@ -20,6 +20,7 @@ namespace Modules\Kanban\tests\Admin; class AdminTest extends \PHPUnit\Framework\TestCase { protected const MODULE_NAME = 'Kanban'; + protected const URI_LOAD = 'http://127.0.0.1/en/backend/kanban'; use \Modules\tests\ModuleTestTrait; diff --git a/tests/ControllerTest.php b/tests/ControllerTest.php index 757724e..4a0d4c7 100755 --- a/tests/ControllerTest.php +++ b/tests/ControllerTest.php @@ -35,6 +35,7 @@ use phpOMS\Utils\TestUtils; class ControllerTest extends \PHPUnit\Framework\TestCase { protected $app = null; + protected $module = null; protected function setUp() : void