fix tests

This commit is contained in:
Dennis Eichhorn 2022-10-08 21:34:58 +02:00
parent 96e0ea1f43
commit f905824dda
10 changed files with 90 additions and 8 deletions

View File

@ -1 +1,15 @@
<?php
/**
* Karaka
*
* PHP Version 8.1
*
* @package Modules\Admin
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://karaka.app
*/
declare(strict_types=1);
$exporter = null;

View File

@ -1 +1,15 @@
<?php
/**
* Karaka
*
* PHP Version 8.1
*
* @package Modules\Admin
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://karaka.app
*/
declare(strict_types=1);
$exporter = null;

View File

@ -1 +1,15 @@
<?php
/**
* Karaka
*
* PHP Version 8.1
*
* @package Modules\Admin
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://karaka.app
*/
declare(strict_types=1);
$exporter = null;

View File

@ -1 +1,15 @@
<?php
/**
* Karaka
*
* PHP Version 8.1
*
* @package Modules\Admin
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://karaka.app
*/
declare(strict_types=1);
$exporter = null;

View File

@ -1 +1,15 @@
<?php
/**
* Karaka
*
* PHP Version 8.1
*
* @package Modules\Admin
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://karaka.app
*/
declare(strict_types=1);
$exporter = null;

View File

@ -1,4 +1,5 @@
<?php declare(strict_types=1);
<?php
declare(strict_types=1);
use phpOMS\Router\RouteVerb;

View File

@ -1194,6 +1194,7 @@ final class ApiController extends Controller
* Method to update an account from a request
*
* @param RequestAbstract $request Request
* @param Account $account Account
* @param bool $allowPassword Allow to change password
*
* @return Account

View File

@ -27,6 +27,15 @@ use phpOMS\DataStorage\Database\Mapper\DataMapperFactory;
*/
final class PermissionAbstractMapper extends DataMapperFactory
{
/**
* Create a permission query
*
* @param ConnectionAbstract $connection Connection
*
* @return PermissionQueryBuilder
*
* @since 1.0.0
*/
public static function helper(ConnectionAbstract $connection) : PermissionQueryBuilder
{
return new PermissionQueryBuilder($connection);

View File

@ -34,7 +34,7 @@
}
]'>
<datalist id="<?= $this->getId(); ?>-datalist"></datalist>
<input type="hidden" id="<?= $this->getId(); ?>-idlist"<?= $this->isRequired() ? ' required' : ''; ?>>
<input name="datalist-list" type="hidden" id="<?= $this->getId(); ?>-idlist"<?= $this->isRequired() ? ' required' : ''; ?>>
</span>
</div>
<div class="ipt-second"><button><?= $this->getHtml('Add', '0', '0'); ?></button></div>

View File

@ -1,4 +1,5 @@
<?php declare(strict_types=1);
<?php
declare(strict_types=1);
// Modules/tests