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

tool_monitor unit tests are failing in oracle.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.8
    • 2.8
    • Events API, Unit tests

    Description

      damyonw@damyon:~/Documents/Moodle/instances/im_oracle/moodle$ ./vendor/bin/phpunit admin/tool/monitor/tests/rule_manager_test.php
      Moodle 2.8beta+ (Build: 20141017), oci, b1b66a3d1213e31392f81ba9821a55b84ccc335c
      PHPUnit 3.7.10 by Sebastian Bergmann.
       
      Configuration read from /home/damyonw/Documents/Moodle/instances/im_oracle/moodle/phpunit.xml
       
      ...FF.
       
      Time: 28 seconds, Memory: 72.25Mb
       
      There were 2 failures:
       
      1) tool_monitor_rule_manager_testcase::test_get_rules_by_courseid
      Failed asserting that two arrays are equal.
      --- Expected
      +++ Actual
      @@ @@
       Array (
      -    0 => 1
      -    1 => 2
      -    2 => 4
      -    3 => 5
      -    4 => 7
      -    5 => 8
      -    6 => 10
      -    7 => 11
      -    8 => 13
      -    9 => 14
      -    10 => 16
      -    11 => 17
      -    12 => 19
      -    13 => 20
      -    14 => 22
      -    15 => 23
      -    16 => 25
      -    17 => 26
      -    18 => 28
      -    19 => 29
      +    0 => 2
      +    1 => 5
      +    2 => 8
      +    3 => 11
      +    4 => 14
      +    5 => 17
      +    6 => 20
      +    7 => 23
      +    8 => 26
      +    9 => 29
      +    10 => 1
      +    11 => 4
      +    12 => 7
      +    13 => 10
      +    14 => 13
      +    15 => 16
      +    16 => 19
      +    17 => 22
      +    18 => 25
      +    19 => 28
       )
       
      /home/damyonw/Documents/Moodle/instances/im_oracle/moodle/admin/tool/monitor/tests/rule_manager_test.php:126
      /home/damyonw/Documents/Moodle/instances/im_oracle/moodle/lib/phpunit/classes/advanced_testcase.php:80
       
      To re-run:
       ./vendor/bin/phpunit tool_monitor_rule_manager_testcase admin/tool/monitor/tests/rule_manager_test.php
       
      2) tool_monitor_rule_manager_testcase::test_get_rules_by_plugin
      Failed asserting that two arrays are equal.
      --- Expected
      +++ Actual
      @@ @@
       Array (
      -    0 => 1
      -    1 => 3
      +    0 => 3
      +    1 => 1
           2 => 5
           3 => 7
           4 => 9
           5 => 11
           6 => 13
           7 => 15
           8 => 17
           9 => 19
       )
       
      /home/damyonw/Documents/Moodle/instances/im_oracle/moodle/admin/tool/monitor/tests/rule_manager_test.php:153
      /home/damyonw/Documents/Moodle/instances/im_oracle/moodle/lib/phpunit/classes/advanced_testcase.php:80
       
      To re-run:
       ./vendor/bin/phpunit tool_monitor_rule_manager_testcase admin/tool/monitor/tests/rule_manager_test.php
       
      FAILURES!
      Tests: 6, Assertions: 21, Failures: 2.
      damyonw@damyon:~/Documents/Moodle/instances/im_oracle/moodle$ 
      

      Attachments

        Issue Links

          Activity

            People

              johno John Okely
              damyon Damyon Wiese
              Adrian Greeve Adrian Greeve
              Marina Glancy Marina Glancy
              Marina Glancy Marina Glancy
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, 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:
                10/Nov/14