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

Some failures on unit tests (testcompletionlib.php)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.2
    • Component/s: Activity completion
    • Labels:

      Description

      Running all unit tests, I got this ones related to completionlib:

      Fail: lib/simpletest/testcompletionlib.php / ▶ completionlib_test / ▶ test_get_progress_all
      Mock method [get_tracked_users] at [0] -> Expected 6 arguments of [Boolean: false, Array: 0 items, Integer: 0, String: , String: , String: ] but got 7 arguments of [Boolean: false, Array: 0 items, Integer: 0, String: , String: , String: , NULL] at [/Users/stronk7/git_moodle/integration/lib/simpletest/testcompletionlib.php line 530]
      line ... of ...
      line 1210 of /lib/completionlib.php: call to completion_cutdown->get_tracked_users()
      line 556 of /lib/simpletest/testcompletionlib.php: call to completion_info->get_progress_all()
      line ... of ...

      and

      Fail: lib/simpletest/testcompletionlib.php / ▶ completionlib_test / ▶ test_get_progress_all
      Mock method [get_tracked_users] at [1] -> Expected 6 arguments of [Boolean: true, Integer: 3, Integer: 0, String: , String: , String: ] but got 7 arguments of [Boolean: true, Integer: 3, Integer: 0, String: , String: , String: , NULL] at [/Users/stronk7/git_moodle/integration/lib/simpletest/testcompletionlib.php line 559]
      line ... of ...
      line 1210 of /lib/completionlib.php: call to completion_cutdown->get_tracked_users()
      line 594 of /lib/simpletest/testcompletionlib.php: call to completion_info->get_progress_all()
      line ... of ...

      Tracing the problem down, it seems to be cause by MDL-26647

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              quen Sam Marshall
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Michael de Raadt
              Participants:
              Component watchers:
              Sam Marshall, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                5/Dec/11