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

New activity chooser assumes no additonal plugins are installed.

    XMLWordPrintable

Details

    • MOODLE_39_STABLE
    • 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

              Unassigned Unassigned
              rdebleu Renaat Debleu
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona), Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                15/Jun/20

                Time Tracking

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