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

PHP Unit does not consistently require global $CFG

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Minor Minor
    • None
    • 2.6.2
    • Unit tests
    • MOODLE_26_STABLE

      If you run PHP Unit passing the file name, the file should start with global $CFG. If you pass the testcase, it does not need it.

      vendor/bin/phpunit lib/tests/portfoliolib_test.php
      vs.
      vendor/bin/phpunit core_portfoliolib_testcase
      

      This creates inconsistencies between our development environment and the CI server. See comments in MDL-45256.

            skodak Petr Skoda
            fred Frédéric Massart
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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