mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-28 04:30:08 +02:00
Fixed tests
This commit is contained in:
parent
e9973af8f4
commit
74e555d25d
2 changed files with 59 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue