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

Unit test failures when using MSSQL server with full-text search enabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.3.5
    • Fix Version/s: None
    • Labels:
      None
    • Affected Branches:
      MOODLE_33_STABLE

      Description

      Found the following errors and failures when running unit tests on a Moodle instance using MSSQL Server with full-text search enabled:

      There were 2 errors:
       
      1) auth_db_testcase::test_clean_data
      moodle_exception: Could not connect to the specified authentication database...
       
      /home/jun/moodles/integrationmaster_sqlsrv/moodle/lib/setuplib.php:482
      /home/jun/moodles/integrationmaster_sqlsrv/moodle/auth/db/auth.php:522
      /home/jun/moodles/integrationmaster_sqlsrv/moodle/auth/db/auth.php:297
      /home/jun/moodles/integrationmaster_sqlsrv/moodle/auth/db/tests/db_test.php:433
      /home/jun/moodles/integrationmaster_sqlsrv/moodle/lib/phpunit/classes/advanced_testcase.php:80
       
      To re-run:
       vendor/bin/phpunit auth_db_testcase auth/db/tests/db_test.php
       
      2) auth_db_testcase::test_deleting_with_many_users
      moodle_exception: Could not connect to the specified authentication database...
       
      /home/jun/moodles/integrationmaster_sqlsrv/moodle/lib/setuplib.php:482
      /home/jun/moodles/integrationmaster_sqlsrv/moodle/auth/db/auth.php:522
      /home/jun/moodles/integrationmaster_sqlsrv/moodle/auth/db/auth.php:297
      /home/jun/moodles/integrationmaster_sqlsrv/moodle/auth/db/tests/db_test.php:477
      /home/jun/moodles/integrationmaster_sqlsrv/moodle/lib/phpunit/classes/advanced_testcase.php:80
       
      To re-run:
       vendor/bin/phpunit auth_db_testcase auth/db/tests/db_test.php
       
      --
       
      There were 2 failures:
       
      1) auth_db_testcase::test_plugin
      Failed asserting that false is an instance of class "ADORecordSet".
       
      /home/jun/moodles/integrationmaster_sqlsrv/moodle/auth/db/tests/db_test.php:181
      /home/jun/moodles/integrationmaster_sqlsrv/moodle/lib/phpunit/classes/advanced_testcase.php:80
       
      To re-run:
       vendor/bin/phpunit auth_db_testcase auth/db/tests/db_test.php
       
      2) enrol_database_testcase::test_sync_user_enrolments
      Failed asserting that 0 matches expected 2.
       
      /home/jun/moodles/integrationmaster_sqlsrv/moodle/enrol/database/tests/sync_test.php:256
      /home/jun/moodles/integrationmaster_sqlsrv/moodle/lib/phpunit/classes/advanced_testcase.php:80
       
      To re-run:
       vendor/bin/phpunit enrol_database_testcase enrol/database/tests/sync_test.php
       
      ERRORS!
      Tests: 9044, Assertions: 91019, Errors: 2, Failures: 2, Skipped: 87.
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              jpataleta Jun Pataleta
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: