Repo Interface für tests

This commit is contained in:
2026-03-05 08:26:51 +01:00
parent 8f4dd5840d
commit 4b31fc7664
171 changed files with 3518 additions and 2297 deletions

View File

@@ -67,13 +67,13 @@ class SchedulerRunServiceTest extends TestCase
]);
$scheduledJobRepository->expects($this->once())
->method('markRunning')
->with(7, $this->isType('string'))
->with(7, $this->isString())
->willReturn(false);
$scheduledJobRunRepository = $this->createMock(ScheduledJobRunRepository::class);
$scheduledJobRunRepository->expects($this->once())
->method('create')
->with($this->isType('array'))
->with($this->isArray())
->willReturn(1);
$databaseSessionRepository = $this->createMock(DatabaseSessionRepository::class);
@@ -119,10 +119,10 @@ class SchedulerRunServiceTest extends TestCase
$jobRecord = null;
$runRecord = null;
foreach ($records as $record) {
if (($record['event_type'] ?? '') === 'scheduler.job.run') {
if ($record['event_type'] === 'scheduler.job.run') {
$jobRecord = $record;
}
if (($record['event_type'] ?? '') === 'scheduler.run') {
if ($record['event_type'] === 'scheduler.run') {
$runRecord = $record;
}
}