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

Unit test failures if a /templates directory exists on disk

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.2.4
    • 3.2.3, 3.3
    • Unit tests
    • MOODLE_32_STABLE, MOODLE_33_STABLE
    • MOODLE_32_STABLE
    • MDL-58833-master
    • Hide
      1. Create /templates directory:

        sudo mkdir /templates
        

      2. Run unit test:

        vendor/bin/phpunit tool_templatelibrary_external_testcase admin/tool/templatelibrary/tests/externallib_test.php
        

      Show
      Create /templates directory: sudo mkdir /templates Run unit test: vendor/bin/phpunit tool_templatelibrary_external_testcase admin/tool/templatelibrary/tests/externallib_test.php

      The admin/tool/templatelibrary/classes/api.php tool_templatelibrary\api::list_templates function is not strict enough. If there's a /templates directory on disk, it causes an unrelated unit test failure.

            dobedobedoh Andrew Lyons
            dobedobedoh Andrew Lyons
            Ankit Agarwal Ankit Agarwal
            David Monllaó David Monllaó
            John Okely John Okely
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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