Fix tests
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details

This commit is contained in:
philipp lang 2024-07-01 12:08:59 +02:00
parent 7e39a4da84
commit bbdc9e9dfb
2 changed files with 5 additions and 2 deletions

View File

@ -3,6 +3,7 @@
namespace App\Form\Actions;
use App\Form\Models\Form;
use App\Form\Models\Participant;
use App\Group;
use Illuminate\Support\Collection;
use Lorisleiva\Actions\Concerns\AsAction;
@ -15,7 +16,7 @@ class ExportSyncAction
public Form $form;
public function handle(Form $form)
public function handle(Form $form): void
{
$this->form = $form;
@ -44,6 +45,9 @@ class ExportSyncAction
$this->handle(Form::find($formId));
}
/**
* @param Collection<int, Participant> $participants
*/
private function allSheet(Collection $participants): TableDocumentData
{
$document = TableDocumentData::from(['title' => 'Anmeldungen für ' . $this->form->name, 'sheets' => []]);

View File

@ -43,7 +43,6 @@ class FormRegisterActionTest extends FormTestCase
]),
])
->create();
ExportSyncAction::shouldRun()->shouldReceive('asJob')->once()->with($form->id);
$this->register($form, ['vorname' => 'Max', 'nachname' => 'Muster', 'spitzname' => 'Abraham'])
->assertOk();