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

Missing moodle_phpmailer in core_authlib_testcase::test_signup_validate_data_same_email

    XMLWordPrintable

Details

    • MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
    • MOODLE_37_STABLE, MOODLE_38_STABLE
    • Hide

      1) Init the phpunit environment

      php admin/tool/phpunit/cli/init.php

      2) Run the problematic testcase:

      vendor/bin/phpunit --process-isolation --filter core_authlib_testcase

      3) Verify that the test ends without any error.

      Show
      1) Init the phpunit environment php admin/tool/phpunit/cli/init.php 2) Run the problematic testcase: vendor/bin/phpunit --process-isolation --filter core_authlib_testcase 3) Verify that the test ends without any error.

    Description

      This is a regression introduced by MDL-68183

      In an experimental issue I've (travis windows support), where I do execute unit tests separated into multiple filtered groups... (to avoid timeouts) I'm getting the following failure:

      There was 1 error:
      1145
      11461) core_authlib_testcase::test_signup_validate_data_same_email
      1147Error: Class 'moodle_phpmailer' not found
      1148
      1149C:\Users\travis\build\stronk7\moodle\lib\tests\authlib_test.php:436
      1150C:\Users\travis\build\stronk7\moodle\lib\phpunit\classes\advanced_testcase.php:80
      1151
      1152To re-run:
      1153 vendor/bin/phpunit --verbose "core_authlib_testcase" lib/tests/authlib_test.php
      

      (link: https://travis-ci.org/github/stronk7/moodle/jobs/667670316)

      Attachments

        Issue Links

          Activity

            People

              stronk7 Eloy Lafuente (stronk7)
              stronk7 Eloy Lafuente (stronk7)
              David Mudrák (@mudrd8mz) David Mudrák (@mudrd8mz)
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              Janelle Barcega Janelle Barcega
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/May/20

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 25 minutes
                  1h 25m