David Mudrák
4b82c15cdb
MDL-60940 weblib: Introduce an ability to force cleaning of all content
...
The new configuration flag $CFG->forceclean overrides the noclean
option when calling format_text() so that the text is always
and unconditionally cleaned.
2018-04-11 10:23:45 +02:00
Tim Hunt
1872cfcd2f
MDL-61928 formslib: shortforms should work with non-editable forms
2018-04-10 17:39:49 +01:00
Eloy Lafuente (stronk7)
a706fd79a5
MDL-61875 tests: Use existing component & support $CFG->admin
2018-04-10 13:14:34 +02:00
Eloy Lafuente (stronk7)
7aeb85770f
Merge branch 'MDL-61875-master' of https://github.com/snake/moodle
2018-04-10 13:03:27 +02:00
Jake Dallimore
5749f8a4f7
MDL-61875 core_component: new method to get full components list
2018-04-10 08:44:40 +08:00
Andrew Nicols
853508eed3
MDL-61601 cohort: Move theme test to moodle_page
2018-04-09 10:16:54 +08:00
David Monllao
297509d70c
MDL-61621 blocks: New API function
2018-04-06 13:12:30 +02:00
Eloy Lafuente (stronk7)
5b123ab8d3
Merge branch 'MDL-61724-master' of git://github.com/mihailges/moodle
2018-04-03 23:38:59 +02:00
Andrew Nicols
e8b3c3e178
Merge branch 'MDL-61364-master' of git://github.com/lameze/moodle
2018-03-28 18:16:40 +02:00
Andrew Nicols
bddf012b7c
Merge branch 'MDL-61364-master' of git://github.com/lameze/moodle
2018-03-28 18:16:37 +02:00
Simey Lameze
02b1868c32
MDL-61364 core: fix cibot coding issues
2018-03-28 10:18:33 +08:00
Simey Lameze
15cd009097
MDL-61364 core_question: tests for question_has_capability_on exception
2018-03-28 08:54:11 +08:00
Andrew Nicols
ca18d567d7
MDL-61364 question: Add unit tests for question_has_capability_on
2018-03-28 08:54:11 +08:00
Mihail Geshoski
d609207c3e
MDL-61724 resource: Unable to view or download file resource
2018-03-26 11:14:46 +08:00
Mark Nelson
0d657cc9b7
MDL-36941 core: removed 'message_working' table
2018-03-23 12:30:29 +08:00
Mark Nelson
376a79c242
MDL-36941 core: added events for notifications
2018-03-23 12:30:27 +08:00
Mark Nelson
883ce42127
MDL-36941 core: convert existing api to use new table structure
...
Also deprecated the following functions -
1. message_move_userfrom_unread2read - It is not necessary
for us to mark a message as read on user deletion.
2. message_get_blocked_users - Horrible logic used to
determine if a user is blocked via reference on some
randomly chosen 'isblocked' variable.
3. message_get_contacts - The same as above. This can be
done in a much nicer way.
4. message_mark_message_read - We want two functions to do
this to avoid confusing messages and notifications.
5. message_can_delete_message - This assumed the variable
$message contained the 'useridto' property, which
was present in the old table structure. We do not want
future usages where a query is done on the new table
and is simply passed as this won't contain this property.
6. message_delete_message - Same as above.
2018-03-23 12:30:27 +08:00
Eloy Lafuente (stronk7)
9a79102a4c
Merge branch 'MDL-61410-master' of git://github.com/lameze/moodle
2018-03-20 23:53:28 +01:00
Andrew Nicols
3f6ede91aa
Merge branch 'MDL-61519-master' of https://github.com/MartinGauk/moodle
2018-03-20 13:53:36 +08:00
Eloy Lafuente (stronk7)
0fe1ed29d9
Merge branch 'MDL-61615-master' of git://github.com/rezaies/moodle
2018-03-19 11:21:48 +01:00
Simey Lameze
2ee6e02e21
MDL-61410 question: unit tests for question_sort_tags
2018-03-19 11:45:55 +08:00
Martin Gauk
c4172077df
MDL-61519 calendar: do not iterate through all categories
...
Replace calls to \coursecat::get_all() or cache the results.
2018-03-16 14:30:55 +00:00
Andrew Nicols
d7ff2fc28b
Merge branch 'MDL-60398-master' of git://github.com/mihailges/moodle
2018-03-14 10:33:03 +08:00
Shamim Rezaie
15f80bf579
MDL-61615 Questions: unit test for question_delete_course_category
2018-03-13 18:30:51 +11:00
Eloy Lafuente (stronk7)
bad062a992
Merge branch 'MDL-61619-master' of https://github.com/snake/moodle
2018-03-12 16:46:29 +01:00
Jake Dallimore
0c23f4e6b6
MDL-61619 phpunit: phpunit test confirming bug in new xmlize code
2018-03-12 11:11:58 +08:00
Andrew Nicols
431a3bb674
MDL-61307 core: Add component_class_callback functionality
2018-03-09 10:01:18 +08:00
Andrew Nicols
dcc16e155d
MDL-61307 core: Define a new privacy component
2018-03-09 09:59:36 +08:00
Jake Dallimore
8525d8466a
MDL-38829 core: fix whitespace in xmlize test
2018-03-08 11:39:42 +08:00
Jake Dallimore
f9628f871a
Merge branch 'MDL-38829-master' of git://github.com/andrewnicols/moodle
2018-03-08 11:17:05 +08:00
Ryan Wyllie
79c9ad6277
MDL-61363 question: unit tests for question tags context change
2018-03-07 10:31:47 +08:00
Ryan Wyllie
dd69ecb630
MDL-61363 question: unit tests for course context tagging
2018-03-07 10:31:47 +08:00
Andrew Nicols
79e4395888
MDL-38829 core: Rewrite xmlize unit tests
...
These changes adjust the unit tests to compare known values rather than
calculating them on the fly.
The unit test against a 'bad' source has been modified to simply check
for the relevant exception as PHP prevents any output on exceptions
anyway.
2018-03-07 09:40:11 +08:00
Andrew Nicols
475d4345f9
Merge branch 'MDL-61380-master' of git://github.com/rezaies/moodle
2018-03-07 09:00:15 +08:00
Kilian
533a7edeae
MDL-38829 core: Unit test for xmlize using two sample xml files.
...
The file sample_questions.xml from moodle-stack is properly formed.
The file sample_questions_wrong.xml has mismatching tags.
Comparison is performed with recursive array comparison.
Error messages and returned data structures are compared.
Call with: phpunit lib/tests/xmlize_test.php
2018-03-06 15:36:14 +08:00
Andrew Nicols
03d174d733
MDL-61268 core: Fix empty string DB cehck
...
(amended by stronk7 to use the helper better)
2018-03-02 16:31:11 +01:00
Adrian Greeve
8a844437bf
MDL-61268 blocks: Unit tests for deprecated object update.
...
Unit tests for testing that the upgrade functions to change
the now deprecated object to stdClass works.
2018-03-02 09:22:05 +08:00
Shamim Rezaie
4fa49cc647
MDL-61380 Quiz: Adding a random question
2018-03-01 11:50:52 +11:00
Mihail Geshoski
757a889b24
MDL-60398 resource: Unable to download folder resource
2018-02-26 16:49:21 +08:00
Cameron Ball
eadebb2445
MDL-61394 core_scss: Add unit tests for SassC compilation
...
This patch also adds a test in theme_boost to verify that boost
can be succesfully compiled without errors by SassC.
2018-02-19 14:46:00 +08:00
Shamim Rezaie
869320c7f4
MDL-61132 Questions: Unit tests compatibility
...
Modified unit tests to adapt with "Top" categories.
2018-02-05 11:58:58 +11:00
David Monllao
f372f96656
Merge branch 'MDL-60997-master' of git://github.com/junpataleta/moodle
2018-02-01 10:33:16 +08:00
Jun Pataleta
558a6a79d6
MDL-60997 core_message: Add replytoname in unit test
2018-01-25 16:47:12 +08:00
Andrew Nicols
0cc0f72ceb
MDL-60078 behat: Convert ErrorException to DriverException
2018-01-22 11:29:29 +08:00
Andrew Nicols
60ce5848f6
Merge branch 'MDL-60078-master' of https://github.com/nashtechdev01/moodle
2018-01-22 11:08:19 +08:00
KietLy
26872a8006
MDL-60078 User tours accessibility: Tab should go back into the pop-up
2018-01-16 17:36:25 +07:00
Andrew Nicols
174fbacc9b
Merge branch 'MDL-60815-master' of git://github.com/ryanwyllie/moodle
2018-01-16 12:27:43 +08:00
Ryan Wyllie
bb8bb8e41c
MDL-60815 theme: fix loading editor styles
2018-01-16 03:39:09 +00:00
sam marshall
470d59d31f
MDL-61063 Scheduled tasks: Add link to clear fail delay
2018-01-12 11:10:29 +00:00
Cameron Ball
4cca0082df
MDL-61143 core_files: Update unit tests for curl_security_helper
...
Previously some of the unit tests were passing "by accident" becuase
we had the security helper letting through domains where the DNS lookup
failed. That behaviour has changed and now such domains are blocked.
Additionally tests for domains with multiple A records and weird Unicode
stuff have been added.
This patch also mocks the DNS resolution in the test, rather than actually
resolving the domain.
2018-01-09 16:54:32 +08:00