Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-41600

qformat_blackboard_six tests fails if ddmatch installed

    Details

    • Testing Instructions:
      Hide

      Run without ddmatch installed:
      phpunit question/format/blackboard_six/tests/blackboardformatpool_test.php
      phpunit question/format/blackboard_six/tests/blackboardsixformatqti_test.php

      Run it again after installing ddmatch.

      Verify the tests pass in both cases.

      _Plugin: https://github.com/jmvedrine/moodle-qtype_ddmatch_

      Show
      Run without ddmatch installed: phpunit question/format/blackboard_six/tests/blackboardformatpool_test.php phpunit question/format/blackboard_six/tests/blackboardsixformatqti_test.php Run it again after installing ddmatch. Verify the tests pass in both cases. _Plugin: https://github.com/jmvedrine/moodle-qtype_ddmatch_
    • Affected Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      If you have qtype_ddmatch installed, qformat_blackboard_six will generate ddmatch questions for QUESTION_MATCHING in the blackboard xml instead of qtype_match ones.

      As explained in the process_matching code of the format, this is because match actually loses data, ddmatch retains it all correctly.

      The fix is to use the same "is ddmatch installed" check in the test, and to set the expected qtype and subanswers to the relevant output.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/Nov/13