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

Setting recompletionnotify has invalid default and causes core unit test failure #203

Open
micaherne opened this issue Nov 26, 2024 · 1 comment

Comments

@micaherne
Copy link
Contributor

micaherne commented Nov 26, 2024

The setting recompletionnotify has default "range" but this isn't in the list of options.

This causes the core Moodle unit test adminlib_test::test_admin_apply_default_settings to fail:

There was 1 failure:

  1. core\adminlib_test::test_admin_apply_default_settings
    Failed asserting that two arrays are identical.
    --- Expected
    +++ Actual
    @@ @@
    -Array &0 ()
    +Array &0 (
  • 'local_recompletion/recompletionnotify' => 'range'
    +)

/var/www/html/lib/tests/adminlib_test.php:174
/var/www/html/lib/phpunit/classes/advanced_testcase.php:81

This appears to be a new issue affecting version 2024090300 - version 2024071103 was fine.

micaherne added a commit to University-of-Strathclyde-LTE-Team/moodle-local_recompletion that referenced this issue Nov 26, 2024
@danmarsden
Copy link
Owner

danmarsden commented Dec 3, 2024

extra white space at the end of line 69 - hard to see the actual failure with all the other noise in there.

Feel free to fix up otherwise I'll try to get to this sometime next week!

FILE: /home/runner/work/moodle-local_recompletion/moodle-local_recompletion/moodle/local/recompletion/settings.php
------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------
 69 | ERROR | [x] Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine)

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

2 participants