mirror of
https://github.com/Karaka-Management/oms-ClientManagement.git
synced 2026-02-08 04:48:42 +00:00
rename module constants and fix some unit test bugs
This commit is contained in:
parent
4cf5dd6e0b
commit
f8bfccd7d2
|
|
@ -23,7 +23,7 @@ return [
|
||||||
'dest' => '\Modules\ClientManagement\Controller\BackendController:viewClientManagementClientList',
|
'dest' => '\Modules\ClientManagement\Controller\BackendController:viewClientManagementClientList',
|
||||||
'verb' => RouteVerb::GET,
|
'verb' => RouteVerb::GET,
|
||||||
'permission' => [
|
'permission' => [
|
||||||
'module' => BackendController::MODULE_NAME,
|
'module' => BackendController::NAME,
|
||||||
'type' => PermissionType::READ,
|
'type' => PermissionType::READ,
|
||||||
'state' => PermissionState::CLIENT,
|
'state' => PermissionState::CLIENT,
|
||||||
],
|
],
|
||||||
|
|
@ -34,7 +34,7 @@ return [
|
||||||
'dest' => '\Modules\ClientManagement\Controller\BackendController:viewClientManagementClientCreate',
|
'dest' => '\Modules\ClientManagement\Controller\BackendController:viewClientManagementClientCreate',
|
||||||
'verb' => RouteVerb::GET,
|
'verb' => RouteVerb::GET,
|
||||||
'permission' => [
|
'permission' => [
|
||||||
'module' => BackendController::MODULE_NAME,
|
'module' => BackendController::NAME,
|
||||||
'type' => PermissionType::CREATE,
|
'type' => PermissionType::CREATE,
|
||||||
'state' => PermissionState::CLIENT,
|
'state' => PermissionState::CLIENT,
|
||||||
],
|
],
|
||||||
|
|
@ -45,7 +45,7 @@ return [
|
||||||
'dest' => '\Modules\ClientManagement\Controller\BackendController:viewClientManagementClientProfile',
|
'dest' => '\Modules\ClientManagement\Controller\BackendController:viewClientManagementClientProfile',
|
||||||
'verb' => RouteVerb::GET,
|
'verb' => RouteVerb::GET,
|
||||||
'permission' => [
|
'permission' => [
|
||||||
'module' => BackendController::MODULE_NAME,
|
'module' => BackendController::NAME,
|
||||||
'type' => PermissionType::READ,
|
'type' => PermissionType::READ,
|
||||||
'state' => PermissionState::CLIENT,
|
'state' => PermissionState::CLIENT,
|
||||||
],
|
],
|
||||||
|
|
@ -56,7 +56,7 @@ return [
|
||||||
'dest' => '\Modules\ClientManagement\Controller\BackendController:viewClientManagementClientAnalysis',
|
'dest' => '\Modules\ClientManagement\Controller\BackendController:viewClientManagementClientAnalysis',
|
||||||
'verb' => RouteVerb::GET,
|
'verb' => RouteVerb::GET,
|
||||||
'permission' => [
|
'permission' => [
|
||||||
'module' => BackendController::MODULE_NAME,
|
'module' => BackendController::NAME,
|
||||||
'type' => PermissionType::READ,
|
'type' => PermissionType::READ,
|
||||||
'state' => PermissionState::ANALYSIS,
|
'state' => PermissionState::ANALYSIS,
|
||||||
],
|
],
|
||||||
|
|
@ -67,7 +67,7 @@ return [
|
||||||
'dest' => '\Modules\ClientManagement\Controller\BackendController:viewClientAnalysis',
|
'dest' => '\Modules\ClientManagement\Controller\BackendController:viewClientAnalysis',
|
||||||
'verb' => RouteVerb::GET,
|
'verb' => RouteVerb::GET,
|
||||||
'permission' => [
|
'permission' => [
|
||||||
'module' => BackendController::MODULE_NAME,
|
'module' => BackendController::NAME,
|
||||||
'type' => PermissionType::READ,
|
'type' => PermissionType::READ,
|
||||||
'state' => PermissionState::ANALYSIS,
|
'state' => PermissionState::ANALYSIS,
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ class Controller extends ModuleAbstract
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public const MODULE_PATH = __DIR__ . '/../';
|
public const PATH = __DIR__ . '/../';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Module version.
|
* Module version.
|
||||||
|
|
@ -40,7 +40,7 @@ class Controller extends ModuleAbstract
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public const MODULE_VERSION = '1.0.0';
|
public const VERSION = '1.0.0';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Module name.
|
* Module name.
|
||||||
|
|
@ -48,7 +48,7 @@ class Controller extends ModuleAbstract
|
||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public const MODULE_NAME = 'ClientManagement';
|
public const NAME = 'ClientManagement';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Module id.
|
* Module id.
|
||||||
|
|
@ -56,7 +56,7 @@ class Controller extends ModuleAbstract
|
||||||
* @var int
|
* @var int
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public const MODULE_ID = 1003100000;
|
public const ID = 1003100000;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Providing.
|
* Providing.
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ namespace Modules\ClientManagement\tests\Admin;
|
||||||
*/
|
*/
|
||||||
class AdminTest extends \PHPUnit\Framework\TestCase
|
class AdminTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
protected const MODULE_NAME = 'ClientManagement';
|
protected const NAME = 'ClientManagement';
|
||||||
|
|
||||||
protected const URI_LOAD = '';
|
protected const URI_LOAD = '';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user