moodleou / moodle-mod_forumng

ForumNG forum module for Moodle
19 stars 20 forks source link

3.1 Tag API - unit test failures #64

Closed aspark21 closed 7 years ago

aspark21 commented 8 years ago

Moodle 3.1 latest stable / ForumnNG master branch DB - pgsql & mysqli Aware of the release schedule, logging for reference.

Debugging: Method tag_delete() is deprecated, use core_tag_tag::delete_instances()

Related Unit Test Failures 1) mod_forumng_discussion_testcase::test_tag_discussion dml_write_exception: Error writing to database (ERROR: invalid input syntax for integer: "Array" INSERT INTO p_forumng (course,tags,name,intro,introformat,magicnumber) VALUES($1,$2,$3,$4,$5,$6) RETURNING id [array ( 'course' => '140000', 'tags' => array ( 0 => '1', ), 'name' => 'ForumNG 1', 'intro' => 'Test forum 1', 'introformat' => '0', 'magicnumber' => '2448412256245348', )]) /home/travis/build/aspark21/moodle/lib/dml/moodle_database.php:477 /home/travis/build/aspark21/moodle/lib/dml/pgsql_native_moodle_database.php:244 /home/travis/build/aspark21/moodle/lib/dml/pgsql_native_moodle_database.php:898 /home/travis/build/aspark21/moodle/lib/dml/pgsql_native_moodle_database.php:954 /home/travis/build/aspark21/moodle/mod/forumng/lib.php:57 /home/travis/build/aspark21/moodle/course/modlib.php:121 /home/travis/build/aspark21/moodle/lib/testing/generator/module_generator.php:266 /home/travis/build/aspark21/moodle/mod/forumng/tests/generator/lib.php:84 /home/travis/build/aspark21/moodle/mod/forumng/tests/forumng_discussion_test.php:215 /home/travis/build/aspark21/moodle/lib/phpunit/classes/advanced_testcase.php:80 To re-run: vendor/bin/phpunit mod_forumng_discussion_testcase mod/forumng/tests/forumng_discussion_test.php 2) mod_forumng_rating_testcase::test_rating Unexpected debugging() call detected. /home/travis/build/aspark21/moodle/lib/phpunit/classes/advanced_testcase.php:88 To re-run: vendor/bin/phpunit mod_forumng_rating_testcase mod/forumng/tests/rating_test.php

aspark21 commented 7 years ago

Hey chaps,

Just wondering when you might be doing the next round of public release for the OU plugins. Most of them are affected by this & we are looking at 3.1 upgrades with these being the only outstanding blocker so it would help if we knew when we might be able to schedule things based on that info.

Thanks!

jason-platts commented 7 years ago

Fixed in master - sorry about the delay in pushing the fixes...