Skip to content

Commit c6e5e7b

Browse files
committedMar 14, 2025·
Create a failing test
elifesciences/issues#9223
1 parent 3052991 commit c6e5e7b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
 

‎tests/src/Search/Web/ElifeAssessmentTermsTest.php

+12
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,18 @@ public function testGivenTwoPapersOneExceptionalAndOneCompellingWhenFilteringFor
8080
$this->assertEquals(2, $response['total']);
8181
}
8282

83+
public function testGivenTwoPapersOneExceptionalAndOneWithoutElifAssessmentWhenFilteringForNotApplicableAndExceptionalStrengthItReturnsBothPapers()
84+
{
85+
$this->addDocumentsToElasticSearch([
86+
$this->provideArticleWithElifeAssessmentStrength('exceptional'),
87+
$this->provideArbitraryArticleWithoutElifeAssessment(),
88+
]);
89+
$response = $this->performApiRequest(['elifeAssessmentStrength' => ['exceptional', 'not-applicable']]);
90+
$this->markTestSkipped();
91+
// @phpstan-ignore deadCode.unreachable
92+
$this->assertEquals(2, $response['total']);
93+
}
94+
8395
private function toItemIds(array $items) : array
8496
{
8597
$ids = [];

0 commit comments

Comments
 (0)
Please sign in to comment.