Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
PavlosIsaris committed Jan 20, 2025
1 parent 3f83a8a commit 93c3576
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,13 @@ public function it_can_show_questionnaire_page(): void {
'status_id' => QuestionnaireStatusLkp::PUBLISHED,
]);

// create a default translation for the questionnaire
$questionnaire->defaultFieldsTranslation()->create([
'title' => 'Test Questionnaire',
'description' => 'Test Description',
'language_id' => 6,
]);

// Associate the project and questionnaire
$project->questionnaires()->attach($questionnaire->id);

Expand Down

0 comments on commit 93c3576

Please sign in to comment.