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

Unit test failure in test_read_plans

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • 3.1
    • Competencies
    • MOODLE_31_STABLE
    • MDL-53438-master
    • Hide
      PHPUnit
      1. Run mdk phpunit -s tool_lp
        • Confirm that there are no errors nor failures.
      Manual testing
      1. Go to a user's learning plan page.
      2. Create a comment.
      3. Open the browser's JS console.
      4. Delete a comment.
        • Confirm that the comment gets deleted.
        • Confirm that there is no JS error displayed.
      5. Refresh the page.
        • Confirm that the deleted comment is never displayed.
      Show
      PHPUnit Run mdk phpunit -s tool_lp Confirm that there are no errors nor failures. Manual testing Go to a user's learning plan page. Create a comment. Open the browser's JS console. Delete a comment. Confirm that the comment gets deleted. Confirm that there is no JS error displayed. Refresh the page. Confirm that the deleted comment is never displayed.

      Time: 17.75 minutes, Memory: 671.75Mb
       
      There was 1 failure:
       
      1) tool_lp_external_testcase::test_read_plans
      Failed asserting that two arrays are equal.
      --- Expected
      +++ Actual
      @@ @@
               'contextid' => 149001
      -        'cid' => '56e29161f0012'
      +        'cid' => '56e2916204f3b'
               'autostart' => false
               'canpost' => false
               'canview' => true
               'count' => 0
               'collapsediconurl' => 'http://www.example.com/moodle...lapsed'
               'displaytotalcount' => true
               'displaycancel' => false
               'fullwidth' => true
               'linktext' => 'Comments'
               'notoggle' => false
               'template' => '<div class="comment-message">...</div>'
               'canpostorhascomments' => false
           )
           'url' => 'http://www.example.com/moodle...351000'
       )
       
      /home/fred/www/repositories/cbe/moodle/admin/tool/lp/tests/externallib_test.php:1274
      /home/fred/www/repositories/cbe/moodle/lib/phpunit/classes/advanced_testcase.php:80
       
      To re-run:
       vendor/bin/phpunit tool_lp_external_testcase admin/tool/lp/tests/externallib_test.php
       
      FAILURES!
      Tests: 5492, Assertions: 71769, Failures: 1, Skipped: 12.
      

            jpataleta Jun Pataleta
            fred Frédéric Massart
            Frédéric Massart Frédéric Massart
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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