mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-17 13:53:45 +02:00
Update command unit tests to use helper functions
This commit is contained in:
@@ -83,6 +83,7 @@ class ProcessRunnableCommandTest extends CommandTestCase
|
||||
$this->processScheduleService->shouldReceive('handle')->with($schedule)->once()->andReturnNull();
|
||||
|
||||
$display = $this->runCommand($this->command);
|
||||
|
||||
$this->assertNotEmpty($display);
|
||||
$this->assertContains(trans('command/messages.schedule.output_line', [
|
||||
'schedule' => $schedule->name,
|
||||
@@ -103,6 +104,7 @@ class ProcessRunnableCommandTest extends CommandTestCase
|
||||
$this->repository->shouldReceive('getSchedulesToProcess')->with('00:00:00')->once()->andReturn(collect([$schedule]));
|
||||
|
||||
$display = $this->runCommand($this->command);
|
||||
|
||||
$this->assertNotEmpty($display);
|
||||
$this->assertNotContains(trans('command/messages.schedule.output_line', [
|
||||
'schedule' => $schedule->name,
|
||||
@@ -122,6 +124,7 @@ class ProcessRunnableCommandTest extends CommandTestCase
|
||||
$this->repository->shouldReceive('getSchedulesToProcess')->with('00:00:00')->once()->andReturn(collect([$schedule]));
|
||||
|
||||
$display = $this->runCommand($this->command);
|
||||
|
||||
$this->assertNotEmpty($display);
|
||||
$this->assertNotContains(trans('command/messages.schedule.output_line', [
|
||||
'schedule' => $schedule->name,
|
||||
|
||||
Reference in New Issue
Block a user