Skip to content

Commit

Permalink
Specify new behaviour in another test
Browse files Browse the repository at this point in the history
  • Loading branch information
giorgiosironi committed Jan 10, 2025
1 parent db0fac7 commit 5e41747
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion test/Serializer/ReviewedPreprintNormalizerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,13 @@ function (ApiTestCase $test) {
->withId('subject1')
->__invoke(),
]))
->withElifeAssessment(new ElifeAssessment('eLife assessment title', null, ['landmark'], ['solid']))
->withElifeAssessment(new ElifeAssessment(
'eLife assessment title',
// new ArticleSection(new ArraySequence([new Paragraph('Article 09560 elife assessment text')]), '10.7554/eLife.09560elifeAssessment', 'elife-assessment-id'),
null,
['landmark'],
['solid']
))
->withPromiseOfIndexContent(null)
->__invoke(),
['snippet' => true, 'type' => true],
Expand Down Expand Up @@ -277,6 +283,14 @@ function (ApiTestCase $test) {
],
'elifeAssessment' => [
'title' => 'eLife assessment title',
// 'content' => [
// [
// 'type' => 'paragraph',
// 'text' => 'Article 09560 elife assessment text',
// ],
// ],
// 'doi' => '10.7554/eLife.09560elifeAssessment',
// 'id' => 'elife-assessment-id',
'significance' => ['landmark'],
'strength' => ['solid'],
],
Expand Down

0 comments on commit 5e41747

Please sign in to comment.