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

Unit tests of "grade/simpletest/testedittree.php" are not working when language is set to "Français (fr)"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.0.2, 2.0.3
    • Unit tests
    • None
    • MySQL
    • MOODLE_20_STABLE
      • Set your language to Français (fr)
      • Go to Administration du site > Développement > Tests
      • Click on the button Lancer les tests

      3 assertions fail for the simpletest grade/simpletest/testedittree.php when language is set to Français (fr) because the test doesn't change the decimal point (".") to a comma "," (See attachment).

      The clean way to fix it :

      '/moodle/grade/simpletest/testedittree.php'

      // Orignal line
      $this->assertEqual(grade_edit_tree::format_number($numinput[$i]),$numoutput[$i],$msg);
      // Fixed line
      $this->assertEqual(grade_edit_tree::format_number($numinput[$i]),grade_edit_tree::format_number($numoutput[$i]),$msg);

            stronk7 Eloy Lafuente (stronk7)
            gaudreaj Jean-Philippe Gaudreau
            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.