Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing PHPUnit test with Moodle_404_STABLE #11

Open
opitz opened this issue Apr 29, 2024 · 3 comments
Open

Failing PHPUnit test with Moodle_404_STABLE #11

opitz opened this issue Apr 29, 2024 · 3 comments

Comments

@opitz
Copy link

opitz commented Apr 29, 2024

With Moodle 4.4 (MOODLE_404_STABLE) several PHPUnit tests fail with an identical issue, e.g.:
qtype_varnumunit\walkthrough_test::test_validation_and_interactive_with_m_unit_submission_with_no_unit coding_exception: Coding error detected, it must be fixed by a programmer: Unkown format passed to format_text: html

@aspark21
Copy link

aspark21 commented Jul 9, 2024

Seems related - there's also a couple of behat tests failing

Test editing a Variable numeric set with units question type/Edit a Variable numeric set with units question
And I press "id_updatebutton": Moodle exception: Exception - Warning: Undefined array key "text" in [dirroot]/question/type/varnumunit/questiontype.php on line 121 More information about this error

Exception - Warning: Undefined array key "text" in [dirroot]/question/type/varnumunit/questiontype.php on line 121
More information about this error


    
Debug info: 
 
Error code: generalexceptionmessage
    
        
×
        
Dismiss this notification
    

	* line 157 of /lib/behat/lib.php: Exception thrown
	* line 121 of /question/type/varnumunit/questiontype.php: call to
behat_error_handler()
	* line 205 of /question/type/varnumunit/questiontype.php: call to
qtype_varnumunit->save_units()
	* line 538 of /question/type/questiontypebase.php: call to
qtype_varnumunit->save_question_options()
	* line 294 of /question/bank/editquestion/question.php: call to
question_type->save_question()

@leonstr
Copy link

leonstr commented Jul 18, 2024

@aspark21 The Undefined array key "text" in the Behat test is a different issue, I've reported it as #12 .

@leonstr
Copy link

leonstr commented Jul 18, 2024

Submitted PR #13 for the PHPUnit test failures.

Also reported spelling error in _Unkown format passed to format_text_: MDL-82530.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants