Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-35218 META: Course formats refactoring for 2.4
  3. MDL-35769

Course formats: Add function format_base::default_blocks() to replace config.php

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.4
    • 2.4
    • Course
    • MOODLE_24_STABLE
    • MOODLE_24_STABLE
    • wip-MDL-35769-master
    • Hide

      The test is aimed to test that nothing is changed:

      Test 1 - creating courses.

      1. Login as course manager (not admin but with capability to create courses)
      2. Create one course of each core format, make sure all default blocks are added.
      3. Add $CFG->defaultblocks_override with the list of blocks there
      4. Create courses, make sure that blocks from format config are ignored
      5. Add $CFG->defaultblocks_topics with the list of blocks there
      6. Create course with 'topics' format, make sure that blocks from format config are ignored

      Test 2 - creating moodle site

      1. Create fresh installation of moodle site
      2. Make sure that default blocks are added to the front page: see code of function blocks_get_default_site_course_blocks()
      Show
      The test is aimed to test that nothing is changed: Test 1 - creating courses. Login as course manager (not admin but with capability to create courses) Create one course of each core format, make sure all default blocks are added. Add $CFG->defaultblocks_override with the list of blocks there Create courses, make sure that blocks from format config are ignored Add $CFG->defaultblocks_topics with the list of blocks there Create course with 'topics' format, make sure that blocks from format config are ignored Test 2 - creating moodle site Create fresh installation of moodle site Make sure that default blocks are added to the front page: see code of function blocks_get_default_site_course_blocks()

      at the moment default blocks for the course format are defined in config.php with $format['defaultblocks']
      should be moved to function format_base::default_blocks()

            marina Marina Glancy
            marina Marina Glancy
            Dan Poltawski Dan Poltawski
            Frédéric Massart Frédéric Massart
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.