From 45d6f4f492bc0ed6520f4e2f0d68f64e5c81df0d Mon Sep 17 00:00:00 2001 From: LinaKind Date: Thu, 6 Mar 2025 15:40:07 +0200 Subject: [PATCH] Mock minimum strength queries with the correct strength values https://github.com/elifesciences/issues/issues/9208 --- test/Controller/BrowseControllerTest.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/Controller/BrowseControllerTest.php b/test/Controller/BrowseControllerTest.php index a8ec354f..7c281a72 100644 --- a/test/Controller/BrowseControllerTest.php +++ b/test/Controller/BrowseControllerTest.php @@ -228,7 +228,6 @@ public function it_displays_the_requested_minimum_strength_in_the_filter_dropdow $client = static::createClient(); $this->setUpApiMocksForMinimumStrengthQuery(); - $this->markTestSkipped(); $crawler = $client->request('GET', '/browse?minimumStrength=solid'); $this->assertStatusCodeIs200($client); @@ -391,7 +390,8 @@ private function buildSearchApiRequestForOneItemWithSolidStrength() 'per-page' => '1', 'sort' => 'date', 'order' => 'desc', - 'elifeAssessmentStrength[]' => ['solid'], + 'elifeAssessmentSignificance[]' => ['important', 'fundamental', 'landmark', 'useful', 'valuable', 'not-assigned'], + 'elifeAssessmentStrength[]' => ['exceptional', 'compelling', 'convincing', 'solid'], 'type[]' => $this->researchTypes, 'use-date' => 'default', ]); @@ -434,7 +434,8 @@ private function buildSearchApiRequestForTenItemsWithSolidStrength() 'per-page' => '10', 'sort' => 'date', 'order' => 'desc', - 'elifeAssessmentStrength[]' => ['solid'], + 'elifeAssessmentSignificance[]' => ['important', 'fundamental', 'landmark', 'useful', 'valuable', 'not-assigned'], + 'elifeAssessmentStrength[]' => ['exceptional', 'compelling', 'convincing', 'solid'], 'type[]' => $this->researchTypes, 'use-date' => 'default', ]);