Frederic Massart
048f8073d1
Revert "Merge branch 'MDL-54110_master' of https://github.com/marxjohnson/moodle "
...
This reverts commit 016e0abfbc
, reversing
changes made to 58a2f0ac40
.
2016-06-23 11:51:44 +08:00
Frederic Massart
796f86f753
Revert "MDL-54110 repositories: Whitespace, Typo + unit test fixes"
...
This reverts commit 7e4d43e1a2
.
2016-06-23 11:51:44 +08:00
Andrew Nicols
7e4d43e1a2
MDL-54110 repositories: Whitespace, Typo + unit test fixes
2016-05-11 10:39:40 +08:00
Andrew Nicols
016e0abfbc
Merge branch 'MDL-54110_master' of https://github.com/marxjohnson/moodle
2016-05-11 10:10:57 +08:00
Mark Johnson
121b67411f
MDL-54110 repositories: Allow repositories to ignore post_max_size
...
Repositories can now override usespost() if they don't upload using POST
requests. This restores the ability of users with
moodle/course:ignorefilesizelimits to upload files of unlimited size
lost in MDL-44626.
2016-05-10 16:10:24 +01:00
Frederic Massart
88474db22f
MDL-50704 date: Fix invalid timezone mapping for +14
...
The value Etc/GMT-14 was added to the list of known timezones,
and Etc/GMT+13 & Etc/GMT+14 were removed as they are not valid.
Tests were added to ensure that legacy user timezones are mapped
to known timezones. Other tests were changed to reflect the changes
with regards to Etc/GMT+13 and +-14.
2016-05-09 17:28:38 +08:00
Brendan Heywood
344178035d
MDL-53102 tests: corrected phpdocs in email diversion tests
...
(Introduced by previous patch MDL-52818)
2016-03-14 14:20:10 +11:00
Brendan Heywood
54dceeed88
MDL-53102 email: Ensure all emails generate consistent Message-ID URLs
2016-03-14 14:20:10 +11:00
Brendan Heywood
eca8cf67dc
MDL-52818 core: Added CFG->divertallemailsexcept config option
...
When $CFG->divertallemailsto is specified, this allows a list of email
or domain exceptions to be whitelisted enabling easier testing by groups
of testers who don't share a single email address.
2016-02-09 09:59:20 +00:00
Eloy Lafuente (stronk7)
6e38f41d8e
MDL-52567 Core: amend existing test to new counting rules
2016-01-29 10:15:24 +08:00
jinhofer
4ebdd15487
MDL-51483 lib/moodlelib.php: Added conditional checks to shorten_text
2015-12-03 10:00:08 -06:00
Petr Skoda
e4ac3879c2
MDL-50860 core: improve creation of random strings
2015-09-08 01:07:37 +02:00
Frederic Massart
a180d06cb8
MDL-46232 user: Handle bulk delete of users without email addresses
2015-07-27 15:47:39 +08:00
Eloy Lafuente (stronk7)
0339f2c4c1
MDL-50688 lib: small cleanup + http/https coverage.
2015-06-29 17:12:55 +02:00
Frederic Massart
d031c2dcb9
MDL-49401 moodlelib: PARAM_LOCALURL supports loginhttps
2015-05-05 18:31:13 +08:00
Rajesh Taneja
b6e98dc8bd
MDL-49974 unit_test: Use datetime format supported by different os
...
%k is not supported by windows, so using %H
2015-04-24 13:01:01 +08:00
Rajesh Taneja
0fe86bbdbb
MDL-49799 behat: replaced asd.com with example.com
...
asd.com is a valid domain, we should use reserved domain names for testing
2015-04-20 11:21:20 +08:00
Andrew Nicols
f3cd1624c3
MDL-49828 timezones: Correct typo in unit tests
2015-04-13 11:08:38 +08:00
Petr Skoda
980a3a12ce
MDL-49828 timezones: add tests for DST switching
2015-04-12 15:23:08 +12:00
Petr Skoda
d6e7a63d9a
MDL-49684 timezones: rewrite timezone support
...
This patch replaces all homegrown timezone
stuff with standard PHP date/time code.
The main change is the introduction of core_date
class that returns normalised user and server
timezones. From now on nobody should be using
$CFG->timezone or $user->timezone directly!
Other new features and fixes:
* admins are prompted for timezone during install
* editing of other users is finally fixed
* timezones are displayed in user profile
* new $this->setTimezone() in phpunit
* time locale is now automatically reset in phpunit
* timezone is now automatically reset in phpunit
* phpunit has Australia/Perth as default timezone
2015-04-06 13:53:51 +12:00
Andrew Nicols
fc05c1b8e5
MDL-48197 testing: Normalise uses of noemailever and phpmailer sink
2014-11-19 09:09:50 +08:00
John Okely
c2a9bb3a9d
MDL-43987 core: Remove port numbers in cleanremoteaddr
2014-11-17 09:48:26 +08:00
Adrian Greeve
e622b1a14b
MDL-46921 lib: Update get_all_user_name_fields() plus unit tests.
2014-10-09 08:07:44 +08:00
zbdd
77218e4a52
MDL-42993 auth: spaces removed from usernames by default only
...
Functionality by default does not change with this patch.
However spaces are no longer stripped when cleaning usernames IF
$CFG->extendedusernamechars has been set.
Also included 2 trim statements where small issues were found with reading
external usernames in that were not filtered for trailing whitespaces.
2014-10-01 08:24:54 +13:00
Michael Hughes
ad2fc0d83f
MDL-47214 General: Multiple IP addresses in X-Forwarded-For Fixed
...
Fixed getremoteaddr() function handle multiple IP addresses
Addressed point 2 on Dan's list
Stopped changing $CFG value after started test.
2014-09-26 16:28:57 +01:00
Adrian Greeve
795c5881ab
MDL-40356 lib: Unit tests for the alternativefullnameformat setting.
2014-09-16 10:57:28 +08:00
Marina Glancy
e0dfc380c6
Revert "Merge branch 'wip-MDL-40356-master' of git://github.com/abgreeve/moodle"
...
This reverts commit 4b5fd6eb6d
, reversing
changes made to a788aade7c
.
2014-09-11 10:54:40 +08:00
Adrian Greeve
4112ef994a
MDL-40356 lib: Unit tests for the alternativefullnameformat setting.
2014-09-09 09:23:19 +08:00
Eloy Lafuente (stronk7)
f034d6d113
Merge branch 'MDL-43639_updatePassEveryLogin' of https://github.com/moodlerooms/moodle
2014-09-02 01:07:36 +02:00
Marina Glancy
fb71171fc6
MDL-46589 scheduled task does not send emails
...
Thanks to Luděk Šulák for the patch
2014-08-16 11:29:34 +08:00
Mark Nielsen
b5bad169c2
MDL-43639: Prevent user updated event on every login
...
If auth plugin prevents local passwords, then user
is updated and event is triggered on every login.
2014-08-01 13:36:55 -07:00
Rajesh Taneja
a7466eb448
MDL-45641 event: Removed multiple user_updated event trigger
...
user_updated event was being triggred while
setting password, which is not correct. It now
trigger user_password_updated event. Few more
modifications done:
1. Correct event is being triggred.
2. Event is only triggred when password is chnaged.
3. Password is updated via single api.
4. Updated unit test
2014-06-27 15:44:56 +08:00
Michael Aherne
8561492010
MDL-43669 messaging Enable sending email only from no-reply address
2014-05-19 09:24:26 +01:00
Dan Poltawski
4916184896
Merge branch 'MDL-44349-master' of https://github.com/lucisgit/moodle
2014-04-16 15:11:27 +08:00
Frederic Massart
f0031a7c15
MDL-44941 core: Removing irrelevant assertion causing failures
...
The timemodified property is not called when the user logs in, and
so we should not be checking if its value matches the current time.
2014-04-15 17:25:47 +08:00
Tony Butler
1da7d44ac6
MDL-44349 core_moodlelib: Add unit tests for count_words()
...
Signed-off-by: Tony Butler <tonyjbutler@gmail.com >
2014-04-04 17:10:45 +01:00
Petr Škoda
54b1e0409c
MDL-43905 fix update of user login times
...
There needs to be only one event during user login.
The timemodified field is not supposed to be updated during login.
2014-01-31 10:08:01 +08:00
Rajesh Taneja
623a32e50d
MDL-43736 Events: Updated unit test to test context not used in event
2014-01-29 11:39:50 +08:00
Dan Poltawski
25294dd466
MDL-43481 lib: minor cleanups to commands
...
And remove unused strings - thanks to Simon Coggins!
2014-01-07 15:48:06 +08:00
Petr Škoda
6780a1d3e5
MDL-43481 remove unnecessary legacy password hashing
2013-12-27 11:03:50 +08:00
Ankit Agarwal
cc49a6f7eb
MDL-42767 notes: Delete notes on a course delete
2013-11-19 16:32:19 +08:00
Adrian Greeve
e351bed5c1
MDL-42812 libraries: Update username_load_fields_from_object to add the prefix to everything.
2013-11-12 11:30:16 +08:00
Adrian Greeve
5b1944bbba
MDL-40612 libraries: Tidy up and improvement of the code for additional name fields.
...
Includes an update to get_all_user_name_fields() and the inclusion of set_user_name_object()
2013-11-11 11:01:14 +08:00
Adrian Greeve
f490f988b7
MDL-40612 libraries: Unit test expansion for get_all_user_name_fields()
...
and the inclusion of tests for set_user_name_object()
2013-11-11 10:52:24 +08:00
Petr Škoda
93b3aaf466
MDL-42602 remove incorrect snapshot from \core\event\user_loggedin
...
* all snapshots in events should match the DB data
* the snapshot from user table will not be necessary most probably
2013-11-01 10:34:07 +01:00
Rajesh Taneja
abedc1a84c
MDL-42556 Events: passing modified user info to user_deleted event
...
Deleting user modifies few fields and leave rest as un-modified
So passing modified data to event, to keep it small
2013-10-28 16:37:56 +08:00
Eloy Lafuente (stronk7)
11182e2eb1
Merge branch 'w42_MDL-42224_m26_msgredir' of https://github.com/skodak/moodle
2013-10-16 01:23:01 +02:00
Damyon Wiese
e6338c2c65
Merge branch 'MDL-41170-master' of git://github.com/ankitagarwal/moodle
2013-10-14 14:02:34 +08:00
Ankit Agarwal
6c679d1532
MDL-41170 events: User_updated event should be triggered on password updates
2013-10-14 13:26:47 +08:00
Petr Škoda
f007e89961
MDL-42224 clean up message and email redirection testing
2013-10-12 13:59:07 +02:00