Petr Skoda
16729b7f02
MDL-78192 external: allow nullable non-scalar params and results
2023-06-23 11:12:08 +02:00
Philipp Memmel
31bad4ffcd
MDL-78049 core_external: Run test_all_external_info in separate process
2023-04-27 08:27:07 +02:00
Andrew Nicols
f7d7ad7fed
MDL-77989 core_external: Isolate testing of deprecated file
...
The inclusion of this deprecated file leads to tests passing which may
fail when run in a different order, or for just a single testsuite.
2023-04-21 09:33:53 +08:00
Marina Glancy
8fc1486d36
MDL-77164 various: fix incorrect phpdocs
2023-04-13 11:35:06 +01:00
Petr Skoda
176191dab5
MDL-74936 core: tidy up context API
2023-03-31 23:09:39 +02:00
Andrew Nicols
8aa7812ff8
MDL-75085 external: Whitespace fix
2023-02-02 12:38:46 +08:00
Jun Pataleta
60fe64d786
MDL-75085 core_external: Validate $required param
...
Make sure that the $required param for external_description and its
subclasses are either VALUE_DEFAULT, VALUE_REQUIRED, or VALUE_OPTIONAL.
2023-02-02 09:13:43 +08:00
Jun Pataleta
7a85d041d7
MDL-75085 core_external: Pass proper $required param value in tests
2023-02-02 09:08:29 +08:00
Andrew Nicols
1dbc7b303e
MDL-76583 core_external: Update util_test coding style
2023-01-19 07:34:09 +08:00
Andrew Nicols
a3cc26f8bb
MDL-76583 core: Update uses of external_* classes
2023-01-19 07:34:09 +08:00
Andrew Nicols
188dfcbf8c
MDL-76583 core_external: External API Test coding style fixes
2023-01-19 07:33:47 +08:00
Andrew Nicols
fa676b4776
MDL-76583 core_external: Implement Privacy API for core_external
...
AMOS BEGIN
MOV [privacy:metadata:serviceusers,core_webservice],[privacy:metadata:serviceusers,core_external]
MOV [privacy:metadata:serviceusers:iprestriction,core_webservice],[privacy:metadata:serviceusers:iprestriction,core_external]
MOV [privacy:metadata:serviceusers:timecreated,core_webservice],[privacy:metadata:serviceusers:timecreated,core_external]
MOV [privacy:metadata:serviceusers:userid,core_webservice],[privacy:metadata:serviceusers:userid,core_external]
MOV [privacy:metadata:serviceusers:validuntil,core_webservice],[privacy:metadata:serviceusers:validuntil,core_external]
MOV [privacy:metadata:tokens,core_webservice],[privacy:metadata:tokens,core_external]
MOV [privacy:metadata:tokens:creatorid,core_webservice],[privacy:metadata:tokens:creatorid,core_external]
MOV [privacy:metadata:tokens:iprestriction,core_webservice],[privacy:metadata:tokens:iprestriction,core_external]
MOV [privacy:metadata:tokens:lastaccess,core_webservice],[privacy:metadata:tokens:lastaccess,core_external]
MOV [privacy:metadata:tokens:privatetoken,core_webservice],[privacy:metadata:tokens:privatetoken,core_external]
MOV [privacy:metadata:tokens:timecreated,core_webservice],[privacy:metadata:tokens:timecreated,core_external]
MOV [privacy:metadata:tokens:token,core_webservice],[privacy:metadata:tokens:token,core_external]
MOV [privacy:metadata:tokens:tokentype,core_webservice],[privacy:metadata:tokens:tokentype,core_external]
MOV [privacy:metadata:tokens:userid,core_webservice],[privacy:metadata:tokens:userid,core_external]
MOV [privacy:metadata:tokens:validuntil,core_webservice],[privacy:metadata:tokens:validuntil,core_external]
MOV [privacy:request:notexportedsecurity,core_webservice],[privacy:request:notexportedsecurity,core_external]
AMOS END
2023-01-19 07:33:35 +08:00
Andrew Nicols
caddb452f0
MDL-76583 core_external: Migrate string formatting functions to util
2023-01-19 07:33:35 +08:00
Andrew Nicols
7f5fb6a592
MDL-76583 core_external: Migrate token functions class
2023-01-19 07:33:35 +08:00
Andrew Nicols
7d079e82e1
MDL-76583 core_external: Move util test and update
2023-01-19 07:33:35 +08:00
Andrew Nicols
453738e3fd
MDL-76583 core_external: Move files test and update
2023-01-19 07:33:35 +08:00
Andrew Nicols
3f8fdc8e33
MDL-76583 core_external: Move settings test and update
2023-01-19 07:33:35 +08:00
Andrew Nicols
ecbb31b160
MDL-76583 core_external: Migrate external_settings class
2023-01-19 07:33:35 +08:00
Andrew Nicols
cdd51a663b
MDL-76583 core_external: Move external_api unit tests
2023-01-19 07:33:34 +08:00
Eloy Lafuente (stronk7)
0c53a3dec8
MDL-73476 phpunit: events, external and search tescase names
...
All events_test, external_test and search_test classes:
- Namespaced with component[\level2-API]
- Moved to level2-API subdirectory when required.
- Fixed incorrect use statements with leading backslash.
- Changed code to point to global scope when needed.
- Fix some relative paths and comments here and there.
- All them passing individually.
- Complete runs passing too.
Special mention to lib/external/tests/external_test.php:
- external is not a valid component
- hence, its only valid namespace is "core"
- also, it's testing lib/external/externallib.php
- hence, the file (and class) have been renamed to external_externallib_test.php
(to avoid conflicts with other external_test that may exist in core)
2022-01-14 16:18:39 +01:00
Dani Palou
25bc7a3d6b
MDL-68098 ws: Add unit tests to test mathjax in WS
2020-09-23 11:18:41 +02:00
Shamim Rezaie
4f9bcde969
MDL-68200 core: Add type param to core_get_user_dates external function
2020-05-12 10:59:02 +10:00
Ryan Wyllie
9c7ffb80d3
MDL-57975 core: test for user date external function
...
Part of MDL-55611
2017-03-08 03:33:23 +00: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
Frederic Massart
bf6239eddb
MDL-53779 external: get_string and get_strings use PARAM_RAW
...
For the string parameters and translated strings.
2016-04-12 17:04:19 +08:00
Marina Glancy
cdc5f9785b
MDL-51802 core: new template for quick editing a title
...
convert editing tag name to use new template
2016-02-13 11:07:42 +08:00
Damyon Wiese
bef63c520c
MDL-49240 webservices: core_get_string and friends bad lang handling
...
The core_get_string webservice and friends have never passed lang values
properly, (so never worked) and when I fixed that I found they were passing
lang parameter into the lazyload parameter.
2015-02-24 15:32:17 +08:00
Petr Škoda
5d071be68e
MDL-41022 cleanup core_external_testcase
2013-08-24 16:18:18 +02: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
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
c5f7628d39
MDL-37381 core_external::get_component_strings returns wrong format value
2013-01-08 16:23:24 +08:00
Jerome Mouneyrac
11e766020b
MDL-35997 Create web service functions to return lang strings
2012-10-31 14:21:56 +08:00