Skip to content

Commit

Permalink
Write the first regression test of ReviewedPreprintNormalizer with an…
Browse files Browse the repository at this point in the history
… ElifeAssessment present

elifesciences/issues#9034
  • Loading branch information
giorgiosironi committed Dec 12, 2024
1 parent 9229075 commit e1881fc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/Serializer/ReviewedPreprintNormalizerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use eLife\ApiSdk\ApiClient\ReviewedPreprintsClient;
use eLife\ApiSdk\ApiSdk;
use eLife\ApiSdk\Collection\ArraySequence;
use eLife\ApiSdk\Model\ElifeAssessment;
use eLife\ApiSdk\Model\ReviewedPreprint;
use eLife\ApiSdk\Model\Subject;
use eLife\ApiSdk\Serializer\ReviewedPreprintNormalizer;
Expand Down Expand Up @@ -212,6 +213,7 @@ function (ApiTestCase $test) {
->withId('subject1')
->__invoke(),
]))
->withElifeAssessment(new ElifeAssessment(['landmark'], ['solid']))
->withPromiseOfIndexContent(null)
->__invoke(),
['snippet' => true, 'type' => true],
Expand Down Expand Up @@ -251,6 +253,10 @@ function (ApiTestCase $test) {
'one',
'two',
],
'elifeAssessment' => [
'significance' => ['landmark'],
'strength' => ['solid'],
],
'subjects' => [
['id' => 'subject1', 'name' => 'Subject 1'],
],
Expand Down

0 comments on commit e1881fc

Please sign in to comment.