Skip to content

Commit 4c3bf58

Browse files
committed
ITT: Laravel 5.1+ support.
1 parent 3294cd5 commit 4c3bf58

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/Asserts/ScheduleAssertsTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ private function createSampleSchedule()
1818

1919
$schedule->command('foo')->everyFiveMinutes();
2020
$schedule->command('bar')->hourly();
21-
$schedule->command('baz')->twiceDaily()->runInBackground();
21+
22+
$baz = $schedule->command('baz')->twiceDaily();
23+
if (method_exists($baz, 'runInBackground')) {
24+
$baz->runInBackground();
25+
}
2226
});
2327
}
2428

0 commit comments

Comments
 (0)