Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Common unit test problems: Difference between revisions

From MoodleDocs
No edit summary
Line 16: Line 16:
"Failed to load the sample RSS file. Please check your proxy settings in Moodle. %s"
"Failed to load the sample RSS file. Please check your proxy settings in Moodle. %s"
==== Solution ====
==== Solution ====
You moodle needs network connectivity, please check proxy settings.
Your moodle needs network connectivity, please check proxy settings.


=== moodlesimplepie_testcase::test_redirect ===
=== moodlesimplepie_testcase::test_redirect ===
Failed asserting that 'cURL Error: Operation timed out after 2000 milliseconds with 0 bytes received' is null.
Failed asserting that 'cURL Error: Operation timed out after 2000 milliseconds with 0 bytes received' is null.
==== Solution ====
==== Solution ====
You moodle needs network connectivity, please check proxy settings
Your moodle needs network connectivity, please check proxy settings
 
=== collatorlib_testcase::test_asort_objects_by_method ===
Collation aware sorting not supported, PHP extension "intl" is not available.
==== Solution ====
Install php intl extension

Revision as of 05:13, 15 May 2012

Unit tests are taking more than 5 mins to run

This problem is under investigation. We are hoping to find the soluton. On a typical system all tests complete in under 3 mins.--Dan Poltawski 12:43, 15 May 2012 (WST)

dml_testcase::test_unique_index_collation_trouble

"Unique index is accent insensitive, this may cause problems for non-ascii languages. This is usually caused by accent insensitive default collation."

Solution

Your Database is incorrectly configured. You probably are running MySQL and need to switch to utf8_bin collation.

dml_testcase::test_sql_binary_equal

"SQL operator "=" is expected to be case sensitive Failed asserting that 1 matches expected 2."

Solution

Your Database is incorrectly configured. You probably are running MySQL and need to switch to utf8_bin collation.


moodlesimplepie_testcase::test_getfeed

"Failed to load the sample RSS file. Please check your proxy settings in Moodle. %s"

Solution

Your moodle needs network connectivity, please check proxy settings.

moodlesimplepie_testcase::test_redirect

Failed asserting that 'cURL Error: Operation timed out after 2000 milliseconds with 0 bytes received' is null.

Solution

Your moodle needs network connectivity, please check proxy settings

collatorlib_testcase::test_asort_objects_by_method

Collation aware sorting not supported, PHP extension "intl" is not available.

Solution

Install php intl extension