Skip to content

Commit c6159eb

Browse files
committed
ITT: Laravel 5.1+ support.
1 parent 6c8b2a5 commit c6159eb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Asserts/ScheduleAsserts.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ protected function seeInSchedule($command, $expression, $runInBackground = false
3131
$expression = $this->normalizeScheduleExpression(clone $event, $expression);
3232
$this->assertEquals($expression, $event->expression, $message);
3333

34-
$message = "Failed asserting that command `{$command}` is scheduled with the same `run in background` mode.";
35-
$this->assertEquals($runInBackground, $event->runInBackground, $message);
34+
if (isset($event->runInBackground)) {
35+
$message = "Failed asserting that command `{$command}` is scheduled with the same `run in background` mode.";
36+
$this->assertEquals($runInBackground, $event->runInBackground, $message);
37+
}
3638
}
3739

3840
protected function dontSeeInSchedule($command)

0 commit comments

Comments
 (0)