-
Bug
-
Resolution: Fixed
-
Minor
-
3.5.5, 3.6.3, 3.7
-
MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE
-
MOODLE_35_STABLE, MOODLE_36_STABLE
-
MDL-65558-master -
- Run enrol_database unit tests against sqlsrv
- Run auth_db unit tests against sqlsrv
We are seeing consistent failures when using sqlsrv as a DB when a port is specified:
1) auth_db_testcase::test_clean_data
|
moodle_exception: Could not connect to the specified authentication database...
|
|
/Users/nicols/Sites/moodles/imsqlsrv/moodle/lib/setuplib.php:494
|
/Users/nicols/Sites/moodles/imsqlsrv/moodle/auth/db/auth.php:528
|
/Users/nicols/Sites/moodles/imsqlsrv/moodle/auth/db/auth.php:297
|
/Users/nicols/Sites/moodles/imsqlsrv/moodle/auth/db/tests/db_test.php:429
|
/Users/nicols/Sites/moodles/imsqlsrv/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...
|
|
/Users/nicols/Sites/moodles/imsqlsrv/moodle/lib/setuplib.php:494
|
/Users/nicols/Sites/moodles/imsqlsrv/moodle/auth/db/auth.php:528
|
/Users/nicols/Sites/moodles/imsqlsrv/moodle/auth/db/auth.php:297
|
/Users/nicols/Sites/moodles/imsqlsrv/moodle/auth/db/tests/db_test.php:473
|
/Users/nicols/Sites/moodles/imsqlsrv/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".
|
|
/Users/nicols/Sites/moodles/imsqlsrv/moodle/auth/db/tests/db_test.php:177
|
/Users/nicols/Sites/moodles/imsqlsrv/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.
|
|
/Users/nicols/Sites/moodles/imsqlsrv/moodle/enrol/database/tests/sync_test.php:252
|
/Users/nicols/Sites/moodles/imsqlsrv/moodle/lib/phpunit/classes/advanced_testcase.php:80
|
|
To re-run:
|
vendor/bin/phpunit "enrol_database_testcase" enrol/database/tests/sync_test.php
|
|