Commit graph

5242 commits

Author SHA1 Message Date
Sara Arjona
03e9639edf
Merge branch 'MDL-81959-main' of https://github.com/lucaboesch/moodle 2024-07-01 16:15:38 +02:00
Adrian Perez
e1353c7649 MDL-74251 core: Remove old icon helper classes 2024-06-27 18:28:05 +02:00
Stephan Robotta
f736db9777 MDL-79758 qbank: add filter in pagination links
Contains some minor tweaks by Tim Hunt <T.J.Hunt@open.ac.uk>.
2024-06-27 09:21:23 +01:00
Luca Bösch
529be7c9fe MDL-81959 qtype_multianswer: Margin between checkboxes and text 2024-06-27 00:24:36 +02:00
Huong Nguyen
ebae7fbae4
Merge branch 'MDL-81523' of https://github.com/stronk7/moodle 2024-06-19 09:52:10 +07:00
Eloy Lafuente (stronk7)
adb4a5aade
MDL-82148 phpunit: Remove all cases of multiple @coversDefaultClass
Only one by class is allowed (to be used as shortcut exclusively)
2024-06-15 21:43:31 +02:00
Eloy Lafuente (stronk7)
674497a12c
MDL-81523 phpunit: Add all missing setUp/tearDown parent calls
All setUp(), tearDown(), setUpBeforeClass() and tearDownAfterClass()
must, always, call to parent, to ensure that everything is properly
set and cleaned.

While in a lot of situations this is not needed (parents may not
have anything to run), with PHPUnit >= 10 this can become more
important because we are going to move the reset code from current
placement @ runBare() to setUp()/tearDown().

Note that all the changes performed in this commit have been detected
and fixed by moodle-cs (ParentSetUpTearDownSniffTest).
2024-06-14 16:04:57 +02:00
Jun Pataleta
e7e09fdf46
Merge branch 'MDL-79885-main' of https://github.com/Chocolate-lightning/moodle 2024-06-13 10:37:50 +08:00
Eloy Lafuente (stronk7)
4f7631113c
MDL-81522 phpunit: Add missing void return type to all tests #2
This commit includes more changes, all them also adding the :void
return type to unit tests missing them.

The difference is that all these changes, while also detected
perfectly by the moodle.PHPUnit.TestReturnType sniff, were not
auto-fixed (like the previous commit ones), because all them
do include some "return" statement and, for safety, we don't
fix them.

All the cases have been visually inspected and confirmed that
the existing "return" statements always belong to anon
functions within the test body and not the test own return statement.
2024-06-11 11:55:08 +02:00
Eloy Lafuente (stronk7)
01148a0816
MDL-81522 phpunit: Add missing void return type to all tests
While this change is not 100% required now, it's good habit
and we are checking for it since Moodle 4.4.

All the changes in this commit have been applied automatically
using the moodle.PHPUnit.TestReturnType sniff and are, exclusively
adding the ": void" return types when missing.
2024-06-11 11:55:07 +02:00
Helen Foster
7b8da78e01
MDL-81982 lang: Import fixed English strings (en_fix) 2024-06-05 10:25:28 +08:00
Sara Arjona
5d6c6bf81c
NOBUG: Add upgrade notes 2024-05-30 17:00:19 +02:00
Andrew Nicols
426960249f
Merge branch 'MDL-81597-main' of https://github.com/roland04/moodle 2024-05-28 23:48:50 +08:00
Andrew Nicols
7fc931cdd8
Merge branch 'MDL-81698' of https://github.com/stronk7/moodle 2024-05-28 10:10:39 +08:00
Andrew Nicols
e8f8a4c494
Merge branch 'MDL-74582' of https://github.com/paulholden/moodle 2024-05-28 09:52:14 +08:00
Mikel Martín
e1d2a046d3 MDL-81597 renderer: Add page getter method to renderer_base 2024-05-27 11:38:39 +02:00
Eloy Lafuente (stronk7)
018e6e1fc8
MDL-81698 phpunit: Apply various fixes towards 1by1 execution
The changes here are heterogeneous:
- Include stuff that is not available (other test has included it).
  Sometimes local to a unit test, others in setupBeforeClass() or
  globally, ... depends on every case.
- Rename some tests (namespaces, test name, ...) towards getting it
  running.
- Amend small bits here and there.

Important note: I've left any "cosmetic" warning out from the
changes, only a few errors (like long array syntax) have been fixed.
2024-05-25 17:19:44 +02:00
Ilya Tregubov
8f9e93f5a3 NOBUG: Add upgrade notes 2024-05-24 10:51:52 +08:00
Mathew May
66f8feef7d MDL-79885 qtype_ordering: Add learner behat testing 2024-05-23 11:40:18 +08:00
Huong Nguyen
1776003d39
MDL-81407 core_question: Update upgrade.txt file to document new upgrade note 2024-05-23 10:37:46 +07:00
Huong Nguyen
f2af8e005f
Merge branch 'MDL-81407' of https://github.com/AnupamaSarjoshi/moodle 2024-05-23 10:33:36 +07:00
Huong Nguyen
22859fa326
Merge branch 'MDL-81992' of https://github.com/timhunt/moodle 2024-05-23 09:44:55 +07:00
Tim Hunt
38227bbcc2 MDL-81992 question bank: disable create question button until ready
Previously, you could click the button before it was ready, and that
just led to an error, which was very silly usability.
2024-05-22 16:11:08 +01:00
Huong Nguyen
5d5726d86d
Merge branch 'MDL-81652-main' of https://github.com/lucaboesch/moodle 2024-05-21 17:33:30 +07:00
Huong Nguyen
b4783d39dd
Merge branch 'MDL-76765-main' of https://github.com/lucaboesch/moodle 2024-05-21 17:28:23 +07:00
Luca Bösch
afbe926cb5 MDL-76765 qtype_ddmarker: Show multiple tries options correctly. 2024-05-20 22:07:05 +02:00
Luca Bösch
f080e65500 MDL-76765 question: Show multiple tries options correctly. 2024-05-20 22:07:05 +02:00
Luca Bösch
f0b8121993 MDL-81652 qtype_multianswer: Tackle Bootstrap 5 compatibility. 2024-05-20 21:29:39 +02:00
Andrew Nicols
0964cd5b69
MDL-81125 core: Update upgrade.txt files to document new upgrade notes 2024-05-20 22:26:45 +08:00
Anupama Sarjoshi
691b87e077 MDL-81407 qbank_columnsortorder: Fix error displaying hiddencols
When the question custom fields were deleted, if there were any
hidden columns in qbank Column sort order referring those fields they
were throwing 'Custom field does not exist' exception. Changes done to
ignore such fields and display valid hiddencols, as these references
were breaking the qbank Column sort order and Question bank pages.
2024-05-19 08:51:50 +01:00
Huong Nguyen
d503a09fff
Merge branch 'MDL-81543' of https://github.com/paulholden/moodle 2024-05-16 09:38:31 +07:00
Paul Holden
d792e8c450
MDL-81543 qtype_calculated: correct component of language string. 2024-05-13 10:43:38 +01:00
Paul Holden
59aceef4b5
MDL-81867 qbank_columnsortorder: correct/cleanup previous upgrade step. 2024-05-10 09:08:41 +01:00
Hieu Nguyen Dang
a15c17cc0e MDL-80489 qtype_ddtos: Help Text for Choices section 2024-05-10 12:27:27 +07:00
hieuvu
b4a9ce93a6 MDL-78662 ddwtos: Allow answer to support filter dynamic content. 2024-05-07 08:57:26 +07:00
hieuvu
85c7492db2 MDL-78662 ddmarker: Allow answer to support filter dynamic content. 2024-05-07 08:57:26 +07:00
hieuvu
f1044b45bd MDL-78662 ddimageortext: Allow answer to support filter dynamic content. 2024-05-07 08:57:26 +07:00
hieuvu
6d34386ca9 MDL-78662 core_question: Create utility function to format question. 2024-05-07 08:57:25 +07:00
Huong Nguyen
c292fcafdd
Merge branch 'MDL-80589-main' of https://github.com/lameze/moodle 2024-05-06 09:36:55 +07:00
Simey Lameze
49212ac96c
MDL-80589 behat: fixes and improvements to new tests 2024-05-02 13:32:33 +08:00
Angelia Dela Cruz
49b4f795ec MDL-80589 qtype_numerical: Behat to add, edit, preview numeric question 2024-05-02 12:30:34 +08:00
Ilya Tregubov
641937a47e MDL-81380 qbank_columnsortorder: Add type and return value hint 2024-04-29 10:46:14 +08:00
Ilya Tregubov
137692bd4e Merge branch 'MDL-81380' of https://github.com/AnupamaSarjoshi/moodle 2024-04-29 10:39:59 +08:00
Ilya Tregubov
461fdcc5e5 Merge branch 'MDL-81697' of https://github.com/paulholden/moodle 2024-04-29 09:21:55 +08:00
Anupama Sarjoshi
5ced156252 MDL-81380 qbank_columnsortorder: Add upgrade.php
Before Moodle 4.3, config_plugins settings for qbank_columnsortorder
(disabledcol, enabledcol) had a value like
qbank_statistics\columns\facility_index,
qbank_statistics\columns\discriminative_efficiency, ...
In Moodle 4.3, the values are stored as
qbank_statistics\columns\facility_index-facility_index.
So updating the old values to match the new format.
2024-04-26 17:06:45 +01:00
Huong Nguyen
dfc2d98704
Merge branch 'MDL-81641' of https://github.com/timhunt/moodle 2024-04-26 16:03:14 +07:00
Paul Holden
88b4bc2beb
MDL-81697 qtype_ordering: correctly reference feedback file areas. 2024-04-25 21:37:30 +01:00
Eloy Lafuente (stronk7)
dadfb6e90c
MDL-81581 phpunit: Apply the new method to all remaining cases
After discussing it in the issue, we have agreed to apply
the new phpunit_util::normalise_line_endings() method to
all the remaining cases (within tests!) where the manual
replacement was being done. This commits achieves that.

Note that I've looked for both str_replace() and preg_replace()
cases, but only the former had cases worth converting. All the
later ones are different and cannot be replaced by the new
utility method.
2024-04-25 18:52:16 +02:00
Eloy Lafuente (stronk7)
71bd82ad68
MDL-81581 phpunit: Create the normalise_line_endings() method
And apply it to all the obvious places related with the issue.

Note that surely there are way more in code base, but it's
out of scope for this issue.
2024-04-25 18:52:16 +02:00
Eloy Lafuente (stronk7)
17237b824d
MDL-81581 phpunit: Move multiple assert_same_xml() to common one 2024-04-25 18:52:16 +02:00