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

New activity chooser assumes no additonal plugins are installed.

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_39_STABLE

      Description

      PHPunit tests fail when there are additional activity modules installed:

      1) core_course_externallib_testcase::test_fetch_modules_activity_chooser
      Failed asserting that 23 matches expected 21.
      course/tests/externallib_test.php:3072
      lib/phpunit/classes/advanced_testcase.php:80
      To re-run:
       vendor/bin/phpunit "core_course_externallib_testcase" course/tests/externallib_test.php
      
      

       It would be better to use $this->assertGreaterThanOrEqual instead of $this->assertEquals

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              rdebleu Renaat Debleu
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/Jun/20

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 10 minutes
                  10m