" --------- ----------------------------------------------------------- ---------- \n".
" Trigger Provider Next Run \n".
" --------- ----------------------------------------------------------- ---------- \n".
" test Symfony\Component\Scheduler\Trigger\StaticMessageProvider - \n".
" --------- ----------------------------------------------------------- ---------- \n".
"\n",
$tester->
getDisplay(true
));
} public function testExecuteWithSchedule() { $schedule =
new Schedule();
$schedule->
add(RecurringMessage::
every('first day of next month',
new \
stdClass()));
$schedules =
$this->
createMock(ServiceProviderInterface::
class);
$schedules ->
expects($this->
once()) ->
method('getProvidedServices'
) ->
willReturn(['schedule_name' =>
$schedule]) ;
$schedules ->
expects($this->
once()) ->
method('get'
) ->
willReturn($schedule) ;