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

Unexpected output in phpunit execution

    XMLWordPrintable

    Details

    • Testing Instructions:
      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');
    • Affected Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Epic Link:
    • Pull Master Branch:
      wip-mdl-45416

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rajeshtaneja Rajesh Taneja
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Peer reviewer:
              Simey Lameze Simey Lameze
              Integrator:
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Tester:
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Nov/14