1. 13 Jul, 2022 1 commit
  2. 13 May, 2022 1 commit
  3. 07 May, 2022 1 commit
    • Eloy Lafuente's avatar
      MDL-73971 phpunit: Move more tests to use correct names and namespaces · 9f53b0e9
      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
      9f53b0e9
  4. 01 Feb, 2022 1 commit
  5. 22 Jan, 2022 1 commit
    • Eloy Lafuente's avatar
      MDL-73485 phpunit: externallib, generator and filter tescase names · 100bc51f
      Eloy Lafuente authored
      All externallib_test, generator_test and filter_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 tests under testing/tests:
      
      1) The core_testing component doesn't exist.
      2) But testing/tests are allowed because there is a suite pointing to it (phpunit.xml).
      3) So, the only possible namespace for them is "core".
      4) And to avoid problems with other core testcases (under lib/tests)
         they have been renamed to have testing_xxxx as prefix.
      
      Finally, also modified calendar/tests/events/events_test.php because it uses
      some renamed (core_calendar_externallib_testcase => \core_calendar\externallib_test)
      classes.
      100bc51f
  6. 17 Dec, 2021 2 commits
    • Eloy Lafuente's avatar
      MDL-73348 phpunit: normalize all privacy provider tests · e4a2d9c1
      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.
      e4a2d9c1
    • Eloy Lafuente's avatar
      MDL-73348 phpunit: privacy and privacy_provider testcase names · 57e6fb7a
      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.
      57e6fb7a
  7. 25 Mar, 2021 1 commit
  8. 10 Mar, 2021 1 commit
    • sam marshall's avatar
      MDL-45242 Lib: Replace calls to deprecated functions · 558cc1b8
      sam marshall authored
      In all cases changes have been kept to a minimum while not making
      the code completely horrible. For example, there are many instances
      where it would probably be better to rewrite a query entirely, but
      I have not done that (in order to reduce the risk of changes).
      558cc1b8
  9. 21 Oct, 2020 1 commit
    • Eloy Lafuente's avatar
      MDL-67673 phpunit: Fix the return type of template methods · f6711bb3
      Eloy Lafuente authored
      All the setup/teardown/pre/post/conditions template methods
      now are required to return void. This was warned with phpunit 7
      and now is enforced.
      
      At the same time, fix a few wrong function names,
      provider data and param types, return statements...
      f6711bb3
  10. 24 Aug, 2020 2 commits
  11. 02 Oct, 2019 4 commits
  12. 01 Oct, 2019 3 commits
  13. 19 Aug, 2019 1 commit
  14. 03 Apr, 2019 1 commit
  15. 05 Mar, 2019 1 commit
  16. 07 Dec, 2018 1 commit
  17. 08 Nov, 2018 1 commit
  18. 30 Oct, 2018 1 commit
  19. 22 Oct, 2018 1 commit
  20. 17 Oct, 2018 1 commit
  21. 10 Sep, 2018 1 commit
  22. 23 Jul, 2018 1 commit
  23. 04 May, 2018 1 commit
    • Marina Glancy's avatar
      MDL-61937 comment: do not use API in provider · 70703d4c
      Marina Glancy authored
      When exporting comments we can not use comments API because:
      - we don't need to call component validate, comments may be disabled right now but
        are still stored
      - we don't need to call display callback
      - we need to export all comments and not only first 15 of them
      70703d4c
  24. 20 Apr, 2018 2 commits
  25. 18 Apr, 2018 1 commit
  26. 13 Mar, 2018 2 commits
  27. 09 Mar, 2018 1 commit
  28. 23 Oct, 2017 1 commit
  29. 21 Sep, 2017 1 commit
  30. 21 Mar, 2017 1 commit
  31. 17 Mar, 2017 1 commit