mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-08 13:28:39 +00:00
fix tests
This commit is contained in:
parent
df7bbbdb66
commit
8c3d4fffa5
|
|
@ -48,7 +48,7 @@ final class InstallerAbstractTest extends \PHPUnit\Framework\TestCase
|
||||||
*/
|
*/
|
||||||
public function testInvalidModuleInstall() : void
|
public function testInvalidModuleInstall() : void
|
||||||
{
|
{
|
||||||
$this->expectException(\Error::class);
|
$this->expectException(\UnexpectedValueException::class);
|
||||||
|
|
||||||
$app = new class() extends ApplicationAbstract {};
|
$app = new class() extends ApplicationAbstract {};
|
||||||
$app->dbPool = $GLOBALS['dbpool'];
|
$app->dbPool = $GLOBALS['dbpool'];
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ return [
|
||||||
'permission' => [
|
'permission' => [
|
||||||
'module' => 'TEST',
|
'module' => 'TEST',
|
||||||
'type' => PermissionType::READ,
|
'type' => PermissionType::READ,
|
||||||
'state' => 1,
|
'category' => 1,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ return [
|
||||||
'permission' => [
|
'permission' => [
|
||||||
'module' => 'TEST',
|
'module' => 'TEST',
|
||||||
'type' => PermissionType::READ,
|
'type' => PermissionType::READ,
|
||||||
'state' => 1,
|
'category' => 1,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user