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

Missing user when running cli/runtestscenario.php

XMLWordPrintable

    • MOODLE_404_STABLE
    • MOODLE_404_STABLE
    • MDL-82162-404
    • MDL-82162-main
    • Hide
      1. Download the attached MDL-82162.feature.
      2. Run the following command to create a course with a few badges:

        php admin/tool/generator/cli/runtestscenario.php --feature="absolute/path/to/file.feature"
        

      3. Check that the following error is not raised when the badges are created: "Invalid user (SELECT id FROM {user} WHERE id = ? AND deleted = ?". It might fail while creating the users if they already exist in your local instance. If that's the case, this error can be ignored.
      4. Login as admin.
      5. Go to the course "MDL-82162-test" and access Badges > Manage badges.
      6. Check there are 3 badges created.
      Show
      Download the attached MDL-82162.feature . Run the following command to create a course with a few badges: php admin/tool/generator/cli/runtestscenario.php --feature="absolute/path/to/file.feature" Check that the following error is not raised when the badges are created: " Invalid user (SELECT id FROM {user} WHERE id = ? AND deleted = ?" . It might fail while creating the users if they already exist in your local instance. If that's the case, this error can be ignored. Login as admin. Go to the course " MDL-82162 -test" and access Badges > Manage badges. Check there are 3 badges created.
    • 1
    • HQ 2024 Sprint I2.2 Moppies

      If the generators need a user to be set, the admin/tool/generator/cli/runtestscenario.php command fails because $USER is not set.

      It has been discovered while testing MDL-43938 and MDL-82057 which use badges.

            sarjona Sara Arjona (@sarjona)
            sarjona Sara Arjona (@sarjona)
            Laurent David Laurent David
            Huong Nguyen Huong Nguyen
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 15 minutes
                1h 15m

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