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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.3.5
    • None
    • MOODLE_33_STABLE

      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.
      

            Unassigned Unassigned
            jpataleta Jun Pataleta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.