fix tests

This commit is contained in:
Dennis Eichhorn 2022-10-08 21:35:00 +02:00
parent 935d1838e3
commit a753afaf0d
3 changed files with 4 additions and 2 deletions

View File

@ -28,4 +28,5 @@ return ['Organization' => [
'Unit' => 'Unit',
'UnitLogo' => 'Unit Logo',
'Units' => 'Units',
'IMG_alt_profile' => 'Unit image',
]];

View File

@ -87,7 +87,7 @@ echo $this->getData('nav')->render(); ?>
$url = UriFactory::build('{/prefix}organization/unit/profile?{?}&id=' . $value->getId()); ?>
<tr tabindex="0" data-href="<?= $url; ?>">
<td data-label="<?= $this->getHtml('ID', '0', '0'); ?>"><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
<td><a href="<?= $url; ?>"><img class="profile-image" src="<?= $value->image instanceof NullMedia ?
<td><a href="<?= $url; ?>"><img alt="<?= $this->getHtml('IMG_alt_profile'); ?>" class="profile-image" src="<?= $value->image instanceof NullMedia ?
UriFactory::build('Web/Backend/img/user_default_' . \mt_rand(1, 6) .'.png') :
UriFactory::build('{/prefix}' . $value->image->getPath()); ?>"></a>
<td data-label="<?= $this->getHtml('Name'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->name); ?></a>

View File

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