From cf021d3671db3e9078d983e3e4f7ea4e71c536d3 Mon Sep 17 00:00:00 2001 From: Denis Chenu Date: Fri, 13 Dec 2024 10:53:19 +0100 Subject: [PATCH] Dev: fix test of statitistics (LSA related) --- tests/unit/helpers/GenerateSimpleStatisticsTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/helpers/GenerateSimpleStatisticsTest.php b/tests/unit/helpers/GenerateSimpleStatisticsTest.php index ac4b5c5606e..e71cac6df42 100644 --- a/tests/unit/helpers/GenerateSimpleStatisticsTest.php +++ b/tests/unit/helpers/GenerateSimpleStatisticsTest.php @@ -46,12 +46,12 @@ public function testStatisticsForThreeQuestions() $questionId3 = $allQuestions[2]->qid; $this->assertStringContainsString("['quid'+'" . $questionId1 . "']", $scriptQ1, 'The statistics do not contain the correct question id.'); - $this->assertStringContainsString("[2,2,4,0]", $scriptQ1, 'The statistics values are not correct.'); + $this->assertStringContainsString("[2,2,4,2]", $scriptQ1, 'The statistics values are not correct.'); $this->assertStringContainsString("['quid'+'" . $questionId2 . "']", $scriptQ2, 'The statistics do not contain the correct question id.'); - $this->assertStringContainsString("[5,3,1,0]", $scriptQ2, 'The statistics values are not correct.'); + $this->assertStringContainsString("[5,3,1,1]", $scriptQ2, 'The statistics values are not correct.'); $this->assertStringContainsString("['quid'+'" . $questionId3 . "']", $scriptQ3, 'The statistics do not contain the correct question id.'); - $this->assertStringContainsString("[1,5,3,0]", $scriptQ3, 'The statistics values are not correct.'); + $this->assertStringContainsString("[1,5,3,1]", $scriptQ3, 'The statistics values are not correct.'); } }