Skip to content

Commit

Permalink
fix qs converter test
Browse files Browse the repository at this point in the history
  • Loading branch information
emmachughes committed Oct 5, 2023
1 parent 0663c99 commit 7bbb8c0
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use App\Events\H5PWasSaved;
use App\Gametype;
use App\H5PContent;
use App\H5PLibrary;
use App\Http\Libraries\License;
use App\Libraries\DataObjects\ResourceMetadataDataObject;
use App\Libraries\Games\Millionaire\Millionaire;
Expand Down Expand Up @@ -84,6 +85,12 @@ public function testCreateH5PQuestionSet(): void
tags: ['List', 'of', 'tags'],
);

H5PLibrary::factory([
'name' => 'H5P.QuestionSet',
'major_version' => 1,
'minor_version' => 12,
])->create();

/** @var QuestionSetConvert $questionsetConverter */
$questionsetConverter = app(QuestionSetConvert::class);
$h5p = $questionsetConverter->convert(
Expand All @@ -98,7 +105,6 @@ public function testCreateH5PQuestionSet(): void
'title' => $questionSet->title,
'license' => License::LICENSE_BY_NC,
]);
// FIXME: when is this stored?
// $this->assertSame(H5PQuestionSet::class, $h5p->getMachineName());
$this->assertSame('H5P.QuestionSet', $h5p->getMachineName());
}
}

0 comments on commit 7bbb8c0

Please sign in to comment.