Skip to content

Failing unit tests in Moodle 4.4 #10

@golenkovm

Description

@golenkovm

Failing unit tests in Moodle 4.4, please see details below:

1) qtype_molsimilarity\question_test::test_compute_final_grade
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
-    0 => 1
-    1 => question_state_gradedright Object &0000000000006bf40000000000000000 ()
+    0 => false
+    1 => question_state_needsgrading Object &0000000000006bf90000000000000000 ()
 )

/var/www/site/question/type/molsimilarity/tests/question_test.php:127
/var/www/site/lib/phpunit/classes/advanced_testcase.php:76

2) qtype_molsimilarity\question_test::test_compute_final_grade_stereo
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
-    0 => 1
-    1 => question_state_gradedright Object &0000000000006bf40000000000000000 ()
+    0 => false
+    1 => question_state_needsgrading Object &0000000000006bf90000000000000000 ()
 )

/var/www/site/question/type/molsimilarity/tests/question_test.php:163
/var/www/site/lib/phpunit/classes/advanced_testcase.php:76

Env details:

  • Moodle 4.4.9+ (Build: 20250613)
  • Php: 8.1.2.1.2.21, pgsql: 16.9 (Debian 16.9-1.pgdg120+1), OS: Linux 6.8.0-1021-aws x86_64
  • PHPUnit 9.6.18 by Sebastian Bergmann and contributors.
  • qtype_molsimilarity version: 2024061700

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions