mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-02-15 23:08:40 +00:00
Fix tests/coverage
This commit is contained in:
parent
39578dc27e
commit
b22a2440f3
|
|
@ -19,11 +19,23 @@ use phpOMS\Message\RequestAbstract;
|
||||||
use phpOMS\Message\ResponseAbstract;
|
use phpOMS\Message\ResponseAbstract;
|
||||||
use phpOMS\Views\View;
|
use phpOMS\Views\View;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Component view.
|
||||||
|
*
|
||||||
|
* @package TBD
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @link http://website.orange-management.de
|
||||||
|
* @since 1.0.0
|
||||||
|
* @codeCoverageIgnore
|
||||||
|
*/
|
||||||
class BaseView extends View
|
class BaseView extends View
|
||||||
{
|
{
|
||||||
private $id = '';
|
private $id = '';
|
||||||
private $isRequired = false;
|
private $isRequired = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
public function __construct(ApplicationAbstract $app, RequestAbstract $request, ResponseAbstract $response)
|
public function __construct(ApplicationAbstract $app, RequestAbstract $request, ResponseAbstract $response)
|
||||||
{
|
{
|
||||||
parent::__construct($app, $request, $response);
|
parent::__construct($app, $request, $response);
|
||||||
|
|
@ -43,6 +55,9 @@ class BaseView extends View
|
||||||
return $this->isRequired;
|
return $this->isRequired;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
public function render(...$data) : string
|
public function render(...$data) : string
|
||||||
{
|
{
|
||||||
$this->id = $data[0];
|
$this->id = $data[0];
|
||||||
|
|
|
||||||
|
|
@ -19,17 +19,29 @@ use phpOMS\Message\RequestAbstract;
|
||||||
use phpOMS\Message\ResponseAbstract;
|
use phpOMS\Message\ResponseAbstract;
|
||||||
use phpOMS\Views\View;
|
use phpOMS\Views\View;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Component view.
|
||||||
|
*
|
||||||
|
* @package TBD
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @link http://website.orange-management.de
|
||||||
|
* @since 1.0.0
|
||||||
|
* @codeCoverageIgnore
|
||||||
|
*/
|
||||||
class PopupView extends View
|
class PopupView extends View
|
||||||
{
|
{
|
||||||
private $id = '';
|
private $id = '';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
public function __construct(ApplicationAbstract $app, RequestAbstract $request, ResponseAbstract $response)
|
public function __construct(ApplicationAbstract $app, RequestAbstract $request, ResponseAbstract $response)
|
||||||
{
|
{
|
||||||
parent::__construct($app, $request, $response);
|
parent::__construct($app, $request, $response);
|
||||||
$this->setTemplate('/Modules/Profile/Theme/Backend/Components/AccountGroupSelector/popup');
|
$this->setTemplate('/Modules/Profile/Theme/Backend/Components/AccountGroupSelector/popup');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setId(string $id)
|
public function setId(string $id) : void
|
||||||
{
|
{
|
||||||
$this->id = $id;
|
$this->id = $id;
|
||||||
}
|
}
|
||||||
|
|
@ -39,6 +51,9 @@ class PopupView extends View
|
||||||
return $this->id;
|
return $this->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
public function render(...$data) : string
|
public function render(...$data) : string
|
||||||
{
|
{
|
||||||
$this->id = $data[0] ?? $this->id;
|
$this->id = $data[0] ?? $this->id;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user