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

Remove callback delete_course deprecated in 3.2

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.5
    • Fix Version/s: 3.6
    • Component/s: Course
    • Labels:
    • Testing Instructions:
      Hide

      Pre-requisites

      Use backup-moodle2-course-2-activity_examples-20180724-2227.mbz to create a new course restoring by this file.

      1. Login as an admin.
      2. Go to Site administration/Courses/Restore course and upload this backup file (backup-moodle2-course-2-activity_examples-20180724-2227.mbz) into the Import a backup file section. And click on the button named restore.
      3. Follow the steps and restore into  Miscellanous category.
      4. Go to the new course and check that this course has all types of activities and resources.
      5. Go to Site administration/Development/debugging and select "Developer: extra Moodle debug messages for developers" on Debug messages(debug) and enable Display debug messages(debugdisplay).

      TEST

      Delete course.

      1. Login as an admin.
      2. Go to Site administration/Courses/Manage courses and categories/Miscellaneous.
      3. Delete the new course created clicking on the garbage icon.
      4. Expected result: Check that the course has been deleted and all the modules are in a green colour notification. Also, there is not warning messages.

      Check in all mods and report/coursereport/format/ callbacks.

      1. Copy test_deprecated_callback.php in your Moodle root directory.
      2. Go to http://yourmoodlesite/test_deprecated_callback.php
      3. Expected result: Check there is no message of the type "... Callback found !!!" (also debugging messages) and all the message are "... not callback found".

      Example of expected result

      assign_delete_course: Not callback found.
      assignment_delete_course: Not callback found.
      book_delete_course: Not callback found.
      chat_delete_course: Not callback found.
      choice_delete_course: Not callback found.
      data_delete_course: Not callback found.
      feedback_delete_course: Not callback found.
      folder_delete_course: Not callback found.
      forum_delete_course: Not callback found.
      glossary_delete_course: Not callback found.
      imscp_delete_course: Not callback found.
      label_delete_course: Not callback found.
      lesson_delete_course: Not callback found.
      lti_delete_course: Not callback found.
      page_delete_course: Not callback found.
      quiz_delete_course: Not callback found.
      resource_delete_course: Not callback found.
      scorm_delete_course: Not callback found.
      survey_delete_course: Not callback found.
      url_delete_course: Not callback found.
      wiki_delete_course: Not callback found.
      workshop_delete_course: Not callback found.
       
      report: Not callback found.
      coursereport: Not callback found.
      format: Not callback found.
      

       

      Show
      Pre-requisites Use backup-moodle2-course-2-activity_examples-20180724-2227.mbz to create a new course restoring by this file. Login as an admin. Go to Site administration/Courses/Restore course and upload this backup file ( backup-moodle2-course-2-activity_examples-20180724-2227.mbz ) into the Import a backup file section. And click on the button named restore . Follow the steps and restore into  Miscellanous category. Go to the new course and check that this course has all types of activities and resources. Go to Site administration/Development/debugging and select "Developer: extra Moodle debug messages for developers" on Debug messages(debug) and enable  Display debug messages(debugdisplay) . TEST Delete course. Login as an admin. Go to Site administration/Courses/Manage courses and categories/Miscellaneous. Delete the new course created clicking on the garbage icon. Expected result: Check that the course has been deleted and all the modules are in a green colour notification. Also, there is not warning messages. Check in all mods and report/coursereport/format/ callbacks. Copy  test_deprecated_callback.php in your Moodle root directory. Go to  http://yourmoodlesite/test_deprecated_callback.php Expected result: Check there is no message of the type "... Callback found !!!" (also debugging messages) and all the message are "... not callback found" . Example of expected result assign_delete_course: Not callback found. assignment_delete_course: Not callback found. book_delete_course: Not callback found. chat_delete_course: Not callback found. choice_delete_course: Not callback found. data_delete_course: Not callback found. feedback_delete_course: Not callback found. folder_delete_course: Not callback found. forum_delete_course: Not callback found. glossary_delete_course: Not callback found. imscp_delete_course: Not callback found. label_delete_course: Not callback found. lesson_delete_course: Not callback found. lti_delete_course: Not callback found. page_delete_course: Not callback found. quiz_delete_course: Not callback found. resource_delete_course: Not callback found. scorm_delete_course: Not callback found. survey_delete_course: Not callback found. url_delete_course: Not callback found. wiki_delete_course: Not callback found. workshop_delete_course: Not callback found.   report: Not callback found. coursereport: Not callback found. format: Not callback found.  
    • Affected Branches:
      MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE
    • Pull Master Branch:
      MDL-53297-master

      Description

      Remove callback delete_course deprecated in 3.1 in MDL-53292

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  3/Dec/18

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 30 minutes
                  30m