1. 09 Mar, 2021 3 commits
    • jun's avatar
      MDL-70815 core_completion: Fix unit tests · 23603315
      jun authored
      * Unit tests for completion_info::get_data() and
      completion_info::internal_get_state are mocked which causes failures
      with the new implementation. It's more straightforward and realistic
      to generate real course and modules to test these methods.
      23603315
    • jun's avatar
      MDL-70815 core_completion: Unit tests for activity_custom_completion · 14234bf2
      jun authored
      Tests cover
       - get_overall_completion_state()
       - is_available()
       - validate_rule()
      Tests don't cover
       - methods that rely on static methods such as:
         - is_defined()
       - static methods in the class because they can't be mocked
       - abstract methods that can be tested better by the plugins
         that extend activity_custom_completion such as:
         - get_state()
         - get_defined_custom_rules()
         - get_custom_rule_descriptions()
      14234bf2
    • jun's avatar
      MDL-70815 core_completion: Activity custom completion details base class · beb0dd74
      jun authored
      * Base class for defining an activity module's custom completion details
      beb0dd74
  2. 05 Mar, 2021 3 commits
  3. 04 Mar, 2021 7 commits
  4. 03 Mar, 2021 27 commits