Juan Leyva
8c4d7cee79
MDL-51945 core_user: Prevent duplicated emails in update_users WS
2017-10-30 17:42:03 +01:00
Juan Leyva
bef201c7e0
MDL-58712 core_user: Do not count the root directory
2017-06-22 16:09:58 +02:00
Juan Leyva
f74ac6e704
MDL-58712 core_user: New WS core_user_get_private_files_info
2017-06-15 09:40:30 +01:00
Marina Glancy
6e65554ea1
MDL-58010 user: allow to update only whitelisted user preferences
2017-03-10 18:04:47 +00:00
Rajesh Taneja
9bb156ee75
MDL-57853 phpunit: Remove use of setExpectedException
2017-02-06 11:44:42 +08:00
Juan Leyva
42778e124e
MDL-56065 user: Fix update_users Web Service
...
Users won’t be updated if:
- They are admins and the user updating is not
- They are the guest user
- They are mnet users
- They are deleted users
2016-11-10 16:15:31 +08:00
David Monllao
8d92dbd1fc
MDL-56159 user: Fix unit test
...
The exception that is being thrown changed to moodle_exception
with usernotfullysetup error code.
2016-10-18 18:24:47 +08:00
Juan Leyva
3e8145a37a
MDL-56126 user: New WS core_user_agree_site_policy
...
This commit includes a change in moodlelib to throw the
sitepolicynotagreed exception in a way that can be captured and
identified by external systems.
2016-10-04 10:20:59 +01:00
Juan Leyva
649777fb8d
MDL-55347 user: New WS core_user_set_users_preferences
2016-10-03 10:22:07 +01:00
Juan Leyva
d44e2e42dc
MDL-56070 user: New Web Service core_user_update_picture
2016-09-23 12:54:23 +01:00
Juan Leyva
45fec98358
MDL-55266 user: New WS core_user_get_user_preferences
2016-07-28 12:08:58 +02:00
Rajesh Taneja
52f3e060e4
MDL-55091 phpunit: Following has been deprecated.
...
1. getMock()
2. setExpectedException()
3. checkForUnintentionallyCoveredCode renamed to beStrictAboutCoversAnnotation
4. beStrictAboutTestSize renamed to enforceTimeLimit
5. UnitTestCase class is now fully removed.
2016-07-26 10:11:30 +08:00
Russell Smith
5407c5b0f4
MDL-51789 users: Allow picture update from webservices.
...
useredit_update_picture as moved to user_update_picture
as it's more general. It was also moved to user/lib.php
so it can be used by both webservices and edit without more include files.
2016-06-21 16:36:53 +10:00
Cameron Ball
f23e9b6ba4
MDL-49414 webservices: Remove deprecated functions
2016-04-27 15:54:38 +08:00
Simey Lameze
ac9768fc1b
MDL-52781 core_user: replace direct PARAM_ usages.
...
This commit replace as much as possible of clean_param and PARAM_ usages related to user object.
Also few unit tests has been changed to match the new validation
2016-04-21 15:24:36 +08:00
Damyon Wiese
56fa860ead
MDL-53772 externallib: Fix busted webservices context handling
...
Fix:
$PAGE->context must be reset when calling validate_context
Improve:
Provide wrapper for calling an external function
The wrapper correctly checks the function parameters and return type against
the description of the external function, and stores the PAGE and COURSE global
state variables, restoring them before the function returns.
Fix: buggy unit tests.
These tests are expecting debugging from a bug that was fixed, and calling web
service functions with no user or session.
2016-04-14 13:58:23 +08:00
Marina Glancy
c4e868d5f0
MDL-50851 user: use new tag API for interests
2016-01-10 15:25:47 +08:00
Rajesh Taneja
7b4933db3a
MDL-51685 unittest: Test functionality individually
2015-11-06 11:14:17 +01: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
Juan Leyva
605c421b58
MDL-45131 user: Add validation for returned parameters in WS tests
2015-04-16 10:25:33 +02:00
Juan Leyva
4bf3a71380
MDL-48443 webservices: Prevent duplicated user devices
2015-03-20 14:45:04 +01:00
Juan Leyva
f494a81167
MDL-48716 webservices: core_user_remove_user_device unit tests
2015-02-19 15:15:18 +01:00
Sam Hemelryk
2611dd99d3
MDL-48196 phpunit: fixed the fail after this change
2014-11-17 15:07:15 +13:00
Sam Hemelryk
1d2fa3af5a
MDL-44279 user: added unit test to trigger known bug
2014-02-21 08:34:49 +13:00
Juan Leyva
6a403810b9
MDL-41914 New webservice core_user_add_user_device
2013-10-04 11:43:45 +02:00
Damyon Wiese
9ffa4cb3a6
MDL-22236 user webservice: add_user_private_files
...
Add webservice for adding files to user private files.
2013-08-08 12:05:40 +08:00
Petr Škoda
8252b7c291
MDL-40901 standardise core test case class and file names
...
This finally allows us to type only the class name when executing individual core test cases.
2013-08-04 22:10:31 +02:00
Adrian Greeve
a327f25ef1
MDL-31776 - lib: Alternate name fields
...
Add support for additional name fields and flexible formating of
user names.
2013-07-09 11:45:50 +08:00
Eloy Lafuente (stronk7)
359c1d4756
Merge branch 'w15_MDL-39075_m25_userdesc' of git://github.com/skodak/moodle
...
Conflicts:
lib/db/upgrade.php
version.php
2013-04-17 01:04:09 +02:00
Petr Škoda
0c4c981f03
MDL-39075 use html as default user description text format
2013-04-12 22:20:42 +02:00
Dan Poltawski
fbd90ba191
Merge branch 'MDL-37410-master' of git://github.com/mouneyrac/moodle
2013-04-10 10:37:29 +08:00
Jerome Mouneyrac
85e6bf8e71
MDL-29938 throw exception when a criteria is repeated, used self instead classname when possible, return only not deleted users
2013-02-15 11:03:13 +08:00
Jerome Mouneyrac
909f27acf4
MDL-37410 External PHPunit test: used ->getDataGenerator()->enrol_user instead to manually enrol the user. + improve the unassignUserCapability to remove a capability assigned by getDataGenerator->enrol_users
2013-02-12 11:15:15 +08:00
Jerome Mouneyrac
0c34e8034d
MDL-29938 ignore invalid keys
2013-02-11 13:58:00 +08:00
Jerome Mouneyrac
bb1105ae31
MDL-29938 Fix typo bypassing some code + remove misplaced code in deprecated function + some code cleaning
2013-02-11 13:57:59 +08:00
Jerome Mouneyrac
b0365ea5d1
MDL-29938 get_users - search users external function
2013-02-11 13:57:59 +08:00
Eloy Lafuente (stronk7)
493d8f781c
Merge branch 'MDL-37354-master' of git://github.com/mouneyrac/moodle
...
Conflicts:
message/tests/externallib_test.php
2013-01-15 21:50:31 +01:00
Jerome Mouneyrac
fb695f6e3d
MDL-37354 clean return value for each externallib PHPUnit tests
2013-01-09 13:47:01 +08:00
Jerome Mouneyrac
c70b9853da
MDL-35543 modify get_users to get_users_by_field (more complex search function named get_users will be implemented later - focussing yet on retrieving user info for a specified field)
2012-10-30 11:36:29 +08:00
Jerome Mouneyrac
36a7059542
MDL-34971 PHPunit test: user/externallib.php
2012-09-26 14:16:19 +08:00