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

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 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()

    Description

      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()

      Attachments

        Issue Links

          Activity

            People

              marina Marina Glancy
              marina Marina Glancy
              Dan Poltawski Dan Poltawski
              Frédéric Massart Frédéric Massart
              Amaia Anabitarte, Carlos Escobedo, Laurent David, Mikel Martín Corrales, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                3/Dec/12