Fixed tests

This commit is contained in:
Jan Böhmer 2024-08-03 23:31:56 +02:00
parent e9973af8f4
commit 74e555d25d
2 changed files with 59 additions and 1 deletions

View file

@ -25,13 +25,14 @@ namespace App\Tests\Services\LogSystem;
use App\Services\LogSystem\EventCommentNeededHelper;
use App\Services\LogSystem\EventCommentType;
use App\Settings\SystemSettings\HistorySettings;
use App\Tests\SettingsTestHelper;
use PHPUnit\Framework\TestCase;
class EventCommentNeededHelperTest extends TestCase
{
public function testIsCommentNeeded(): void
{
$settings = new HistorySettings();
$settings = SettingsTestHelper::createSettingsDummy(HistorySettings::class);
$settings->enforceComments = [EventCommentType::PART_CREATE, EventCommentType::PART_EDIT];
$service = new EventCommentNeededHelper($settings);