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

phpunit 404 tests may fail when using custom exttests location

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.6.1
    • 2.6, 2.7
    • Unit tests
    • MOODLE_26_STABLE, MOODLE_27_STABLE
    • MOODLE_26_STABLE
    • w01_MDL-43510_m27_test404
    • Hide

      no need to test anything

      but if you really insist:
      1/ add this to your config: define('TEST_EXTERNAL_FILES_HTTP_URL', 'http://petr.moodle.local/moodle-exttests');
      2/ or install some apache that returns xml tag before doctype on error pages (my latest opensuse does it)
      3/ and checkout https://github.com/moodlehq/moodle-exttests.git into your own server

      Show
      no need to test anything but if you really insist: 1/ add this to your config: define('TEST_EXTERNAL_FILES_HTTP_URL', 'http://petr.moodle.local/moodle-exttests'); 2/ or install some apache that returns xml tag before doctype on error pages (my latest opensuse does it) 3/ and checkout https://github.com/moodlehq/moodle-exttests.git into your own server
    • 2
    • BACKEND Sprint 8

      the problem is that response may start with xml tag breaking the following assert:

      $this->assertStringStartsWith('<!DOCTYPE', $response->results);
      

      Solution is to remove this test completely because it has very little value...

            skodak Petr Skoda
            skodak Petr Skoda
            Andrew Lyons Andrew Lyons
            Dan Poltawski Dan Poltawski
            Jason Fowler Jason Fowler
            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.