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

RSS notices in php7 unit test execution

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.0.1
    • 3.0
    • RSS, Unit tests

      As reported by Raj in MDL-50565:

      There are 2 notices in phpunit with current patch which are not being handled by "error Control Operators" in php7 (@)

      The notices are being generated by:

      1. blocks/rss_client/tests/cron_test.php
      2. lib/tests/rsslib_test.php

      Masking E_USER_NOTICE in test case fix the problem.

      -        @$block->cron();
      +        error_reporting($CFG->debug & ~E_USER_NOTICE);
      +        $block->cron();
      +        error_reporting($CFG->debug);
      

            dmonllao David Monllaó
            poltawski Dan Poltawski
            Rajesh Taneja Rajesh Taneja
            Dan Poltawski Dan Poltawski
            CiBoT CiBoT
            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.