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
Eloy Lafuente (stronk7)
bb3e956ed9
Merge branch 'MDL-60966-master' of https://github.com/snake/moodle
2017-12-27 17:54:58 +01:00
David Monllao
3410ff644f
Merge branch 'MDL-60942-master' of git://github.com/ryanwyllie/moodle
2017-12-27 17:54:54 +01:00
Ryan Wyllie
0377e78e36
MDL-60966 external: contexts can be passed to external format funcs
2017-12-22 13:10:39 +08:00
Jun Pataleta
a8dffa2d03
Merge branch 'MDL-50666-master' of https://github.com/junpataleta/moodle
2017-12-20 12:49:28 +13:00
Andrew Hancox
64cd459648
MDL-50666 core: Rename allow_ACTION to core_role_set_ACTION_allowed
2017-12-19 13:53:23 +13:00
Andrew Hancox
a63cd3e2ca
MDL-50666 core: Add function get_viewable_roles to set role visibility
2017-12-19 13:53:23 +13:00
Eloy Lafuente (stronk7)
6663f615ed
Merge branch 'wip-MDL-60161-master-test' of git://github.com/abgreeve/moodle
2017-12-18 16:09:51 +01:00