mirror of
https://github.com/Karaka-Management/oms-Search.git
synced 2026-02-13 08:48:41 +00:00
add tests
This commit is contained in:
parent
1e7809492c
commit
cf6f0aadab
46
SearchCommands.php
Normal file
46
SearchCommands.php
Normal file
|
|
@ -0,0 +1,46 @@
|
||||||
|
<?php return [
|
||||||
|
'^:help .*$' => [
|
||||||
|
0 => [
|
||||||
|
'dest' => '\Modules\Help\Controller\SearchController:searchHelp',
|
||||||
|
'verb' => 16,
|
||||||
|
'permission' => [
|
||||||
|
'module' => 'Help',
|
||||||
|
'type' => 2,
|
||||||
|
'state' => 2,
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'^:help :user .*$' => [
|
||||||
|
0 => [
|
||||||
|
'dest' => '\Modules\Help\Controller\SearchController:searchHelp',
|
||||||
|
'verb' => 16,
|
||||||
|
'permission' => [
|
||||||
|
'module' => 'Help',
|
||||||
|
'type' => 2,
|
||||||
|
'state' => 2,
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'^:help :dev .*$' => [
|
||||||
|
0 => [
|
||||||
|
'dest' => '\Modules\Help\Controller\SearchController:searchHelp',
|
||||||
|
'verb' => 16,
|
||||||
|
'permission' => [
|
||||||
|
'module' => 'Help',
|
||||||
|
'type' => 2,
|
||||||
|
'state' => 3,
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
'^:help :module .*$' => [
|
||||||
|
0 => [
|
||||||
|
'dest' => '\Modules\Help\Controller\SearchController:searchHelp',
|
||||||
|
'verb' => 16,
|
||||||
|
'permission' => [
|
||||||
|
'module' => 'Help',
|
||||||
|
'type' => 2,
|
||||||
|
'state' => 2,
|
||||||
|
],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
];
|
||||||
26
tests/Admin/AdminTest.php
Normal file
26
tests/Admin/AdminTest.php
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.4
|
||||||
|
*
|
||||||
|
* @package tests
|
||||||
|
* @copyright Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link https://orange-management.org
|
||||||
|
*/
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace Modules\tests\Search\Admin;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
|
class AdminTest extends \PHPUnit\Framework\TestCase
|
||||||
|
{
|
||||||
|
protected const MODULE_NAME = 'Search';
|
||||||
|
protected const URI_LOAD = '';
|
||||||
|
|
||||||
|
use \Modules\tests\ModuleTestTrait;
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user