Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: Questions
    • Labels:
    • Environment:
      all
    • Database:
      Any
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_20_STABLE

      Description

      functions generate_test in all question types don't really work - mostly because of not using
      array('text' => ..., 'format' => ...) in the question text and feedback. Attached patch fixes generate_test functions for all question types.

        Gliffy Diagrams

          Activity

          Hide
          timhunt Tim Hunt added a comment -

          The generate_test stuff was always yucky, and was broken and removed in 2.1.

          There is a new mechanism for generating test question instances inside the simpletest/helper.php file in most question types. It is not a direct replacement, but at least the test code is now separate from the production code.

          Show
          timhunt Tim Hunt added a comment - The generate_test stuff was always yucky, and was broken and removed in 2.1. There is a new mechanism for generating test question instances inside the simpletest/helper.php file in most question types. It is not a direct replacement, but at least the test code is now separate from the production code.

            People

            • Votes:
              7 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: