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

Unexpected output in phpunit execution

XMLWordPrintable

    • MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
    • MOODLE_26_STABLE, MOODLE_27_STABLE
    • wip-mdl-45416
    • Hide

      run phpunit enrol/ldap/tests/ldap_test.php and make sure you don't see any extra string as in description.

      Set appropriate values for following config variables.

      define('TEST_ENROL_LDAP_HOST_URL', '172.20.255.237');
      define('TEST_ENROL_LDAP_BIND_DN', 'cn=admin,dc=my-domain,dc=com');
      define('TEST_ENROL_LDAP_BIND_PW', 'secret');
      define('TEST_ENROL_LDAP_DOMAIN', 'cn=admin,dc=my-domain,dc=com');
      

      Show
      run phpunit enrol/ldap/tests/ldap_test.php and make sure you don't see any extra string as in description. Set appropriate values for following config variables. define('TEST_ENROL_LDAP_HOST_URL', '172.20.255.237'); define('TEST_ENROL_LDAP_BIND_DN', 'cn=admin,dc=my-domain,dc=com'); define('TEST_ENROL_LDAP_BIND_PW', 'secret'); define('TEST_ENROL_LDAP_DOMAIN', 'cn=admin,dc=my-domain,dc=com');

      It does not break anything at all, but looks ugly.

      We should consider being able to execute enrol_ldap unit tests without getting this in the middle of the run:

      ............................................................. 1525 / 2749 ( 55%)
      ............................................................. 1586 / 2749 ( 57%)
      ............................................................. 1647 / 2749 ( 59%)
      ........................................................[ENROL LDAP] Enrol user 'user1' into course 'course1' (id 2)
      [ENROL LDAP] Disabled enrolment for user 'user1' in course 'course1' (id 2)
      [ENROL LDAP] Enabled enrolment for user 'user1' in course 'course1' (id 2)
      [ENROL LDAP] Disabled enrolment and removed roles for user 'user1' in course 'course1' (id 2)
      [ENROL LDAP] Enrol user 'user1' into course 'course1' (id 2)
      [ENROL LDAP] Unenrol user 'user1' from course 'course1' (id 2)
      ..... 1708 / 2749 ( 62%)
      ............................................................. 1769 / 2749 ( 64%)
      ............................................................. 1830 / 2749 ( 66%)
      

      Not critical at all.

            rajeshtaneja Rajesh Taneja
            stronk7 Eloy Lafuente (stronk7)
            Simey Lameze Simey Lameze
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            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.