- 07 May, 2022 1 commit
-
-
Eloy Lafuente authored
Applied the following changes to various testcase classes: - Namespaced with component[\level2-API] - Moved to level2-API subdirectory when required. - Fixed incorrect use statements with leading backslash. - Remove file phpdoc block - Remove MOODLE_INTERNAL if not needed. - 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: - Some fixtures, initially defined in the test files have been moved to new files in fixtures subdirectory, leaving the unit test files clearer: - moodle2_course_format_test.php - Rename wrong named test: - baseoptiogroup_test = baseoptigroup_test
-
- 29 Apr, 2022 1 commit
-
-
Marina Glancy authored
-
- 23 Apr, 2022 1 commit
-
-
Eloy Lafuente authored
-
- 18 Apr, 2022 1 commit
-
-
Eloy Lafuente authored
By adding the step: Given remote langimport tests are enabled We make the execution of scenarios requiring to install / upgrade lang packs optional, based in the existence of the constant: TOOL_LANGIMPORT_REMOTE_TESTS That way, when we are skipping language upgrades with the CFG var: $CFG->skiplangupgrade = true We can decide not not execute those tests. With other words, putting something like this in the config.php file we will be controlling when to execute or no the behat tests: // Disable lang updates on upgrade. $CFG->skiplangupgrade = true; if (empty($CFG->skiplangupgrade)) { // Define it only if we aren't skipping lang upgrades. define('TOOL_LANGIMPORT_REMOTE_TESTS', true); }
-
- 13 Apr, 2022 1 commit
-
-
jun authored
-
- 27 Mar, 2022 1 commit
-
-
Eloy Lafuente authored
AdoDB SQL*Server drivers use to modify some error and logging preferences. As far as the connection is shared with the main one, that implies that those settings remain for the whole remaining execution. We don't want his in tests, because can affect to other tests at distance. We are fixing this here, only for tests, because it doesn't affect normal requests and because, once we remove AdoDB this won't be needed anymore.
-
- 16 Mar, 2022 1 commit
-
-
Sara Arjona authored
-
- 09 Mar, 2022 1 commit
-
-
Jake Dallimore authored
-
- 22 Feb, 2022 1 commit
-
-
Sara Arjona authored
Before applying a preset, the settings are displayed and, in some cases, the Current/New value columns were empty. This patch fixes it and guarantees this information is updated properly every time the set_value() method is called.
-
- 12 Feb, 2022 1 commit
-
-
Eloy Lafuente authored
-
- 11 Feb, 2022 3 commits
-
-
jun authored
-
Mathew May authored
-
Jake Dallimore authored
Three modes are initially introduced here, for use by dependent code: 1. Automatic - where accounts will be automatically created for users 2. Prompt new or existing - where the user can choose to use an existing account or have a new account created for them. 3. Prompt existing only - where users must link an existing account. This change also adds linked logins, for use with provisioning.
-
- 08 Feb, 2022 2 commits
- 05 Feb, 2022 1 commit
-
-
Eloy Lafuente authored
All restore_date_test, api_test, rule_test, plugin_test, manager_test, helper_test testcase classes: - Namespaced with component[\level2-API] - Moved to level2-API subdirectory when required. - Fixed incorrect use statements with leading backslash. - Remove file phpdoc block - Remove MOODLE_INTERNAL if not needed. - 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: - All restore_date_test cases have been put under xxx\backup level 2 (valid API) namespace.
-
- 02 Feb, 2022 2 commits
-
-
Paul Holden authored
Fix deprecated version. See original change from f9e1c258 for context.
-
Amaia authored
-
- 28 Jan, 2022 1 commit
-
-
Huong Nguyen authored
Co-authored-by:
Andrew Lyons <andrew@nicols.co.uk>
-
- 22 Jan, 2022 1 commit
-
-
Eloy Lafuente authored
This commit removes code that only was being executed by php < 73 and it's 100% safe to do so because Moodle 3.11 and up require php 73, hence it was not executed ever. Removed code includes: - ldap_control_paged_result and ldap_control_paged_result_response (that were deprecated in php 73 and have been removed in php 80). - conditional code in the session manager, where some hacks were needed for php < 73. Note that this removes the private function append_samesite_cookie_attribute() completely because it was doinf nothing (first line was returning for php < 73). - Also removed the old session.hash_function ini setting because it was removed in php 71. Kept code includes: - The environmental check_igbinary322_version test has not been removed because it doesn't hurt (always returns "ok" for php 73 sites) and doing it would involve to backport the environment.xml file to 39 and 310. Instead, a note has been added to MDL-71747 in order to get rid of that check for 4.1 and up.
-
- 14 Jan, 2022 1 commit
-
-
Eloy Lafuente authored
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)
-
- 13 Jan, 2022 1 commit
-
-
Paul Holden authored
The following lang strings have been undepecated, as they are still in use: * errorcoursewronglypublished, core_hub * eventrolecapabilitiesupdated, core_role
-
- 04 Jan, 2022 1 commit
-
-
The adminpresets has become an API in order to let plugins, such as quiz and auth, to overwrite classes for their settings.
-
- 20 Dec, 2021 1 commit
-
-
Simey Lameze authored
-
- 17 Dec, 2021 2 commits
-
-
Eloy Lafuente authored
As far as now all them have correct privacy level2 namespace: - Move them to "privacy" subdir. - Rename the files to "provider_test.php", this includes old privacy_test.php and privacy_provider_test.php files - Rename the testcase to provider_test too (to match file name) Also, change some relative paths and comments to point to new locations.
-
Eloy Lafuente authored
All privacy_test and privacy_provider_test classes: - Namespaced with component\privacy. - Fixed incorrect use statements with leading backslash. - Changed code to point to global scope when needed. - Renamed a few files to make all be privacy_test or privacy_provider_test.php - All them passing individually. - Complete runs passing too.
-
- 13 Dec, 2021 1 commit
-
-
Mathew May authored
-
- 03 Dec, 2021 1 commit
-
-
- 01 Dec, 2021 1 commit
-
-
Matt Porritt authored
On account creation by Oauth2 all configured mapped user fields are now saved in the user profile on user creation. Co-Authored-By: SKOLL Learning Technologies
-
- 19 Oct, 2021 3 commits
-
-
-
-
bas authored
-
- 16 Sep, 2021 5 commits
-
-
Andrew Nicols authored
-
Andrew Nicols authored
-
Andrew Nicols authored
-
Andrew Nicols authored
-
Andrew Nicols authored
-
- 13 Sep, 2021 1 commit
-
-
Andrew Nicols authored
-
- 08 Sep, 2021 1 commit
-
-
cescobedo authored
-
- 07 Sep, 2021 1 commit
-
-
Sujith Haridasan authored
Use strict comparison to avoid type juggling. Signed-off-by:
Sujith Haridasan <sujith@moodle.com>
-