Skip to content

Commit

Permalink
Merge pull request #33 from EscolaLMS/feature/STAR-440
Browse files Browse the repository at this point in the history
fix test
  • Loading branch information
KrzysztofDziedziechEscolasoft authored Mar 28, 2022
2 parents 3f17618 + a1d9815 commit f7284f9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/Api/QuestionnaireCreateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ public function testAdminCanCreateQuestionnaireWithModels(): void
$newModel = $model::factory()
->count(1)
->create();
$questionnaireModel2 = QuestionnaireModel::factory()->makeOne(['model_id' => $newModel[0]->id]);
$questionnaireModel2 = QuestionnaireModel::factory()->makeOne([
'model_id' => $newModel[0]->id,
'model_type_id' => $questionnaireModelType->getKey(),
]);

$response = $this->actingAs($this->user, 'api')->postJson(
'/api/admin/questionnaire',
Expand Down

0 comments on commit f7284f9

Please sign in to comment.