Repo Interface für tests
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user