Improved code style of tests

This commit is contained in:
Jan Böhmer 2023-06-11 15:02:59 +02:00
parent 5629215ce4
commit 684334ba22
73 changed files with 196 additions and 38 deletions

View file

@ -41,6 +41,9 @@ declare(strict_types=1);
namespace App\Services\LogSystem;
/**
* @see \App\Tests\Services\LogSystem\EventCommentHelperTest
*/
class EventCommentHelper
{
protected const MAX_MESSAGE_LENGTH = 255;

View file

@ -23,6 +23,7 @@ namespace App\Services\LogSystem;
/**
* This service is used to check if a log change comment is needed for a given operation type.
* It is configured using the "enforce_change_comments_for" config parameter.
* @see \App\Tests\Services\LogSystem\EventCommentNeededHelperTest
*/
class EventCommentNeededHelper
{

View file

@ -29,6 +29,9 @@ use App\Entity\UserSystem\User;
use App\Services\Misc\ConsoleInfoHelper;
use Doctrine\ORM\EntityManagerInterface;
/**
* @see \App\Tests\Services\LogSystem\EventLoggerTest
*/
class EventLogger
{
public function __construct(protected int $minimum_log_level, protected array $blacklist, protected array $whitelist, protected EntityManagerInterface $em, protected Security $security, protected ConsoleInfoHelper $console_info_helper)