vadimonus / moodle-local_deleteoldquizattempts Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
The at() matcher has been deprecated. It will be removed in PHPUnit 10. Please refactor your test to not rely on the order in which methods are invoked.
$ vendor/bin/phpunit --colors
Moodle 3.11 (Build: 20210517), a9d942ff42f7485ba38af794087cf35ba3a24818
Php: 7.4.3, pgsql: 12.6
PHPUnit 9.5.2 by Sebastian Bergmann and contributors.
There were 4 warnings:
1) local_deleteoldquizattempts_locallib_testcase::test_delete_attempts_with_timelimit
2) local_deleteoldquizattempts_locallib_testcase::test_delete_attempts_with_quizid
3) local_deleteoldquizattempts_locallib_testcase::test_delete_attempts_with_courseid
4) local_deleteoldquizattempts_delete_questions_testcase::test_delete_questions_with_timelimit
Hi, i have error while cli command, how can I fix it
Default exception handler: Не знайдено запис в таблиці бази даних context. Debug: SELECT * FROM {context} WHERE id = ?
[array (
0 => '153809',
)]
Error code: invalidrecord
line 1562 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
line 1538 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
line 5213 of /lib/accesslib.php: call to moodle_database->get_record()
line 5602 of /lib/accesslib.php: call to context::instance_by_id()
line 7128 of /lib/accesslib.php: call to context->get_parent_context()
line 232 of /lib/classes/event/base.php: call to context_module->get_course_context()
line 436 of /mod/quiz/locallib.php: call to core\event\base::create()
line 60 of /local/deleteoldquizattempts/classes/helper.php: call to quiz_delete_attempt()
line 228 of /local/deleteoldquizattempts/classes/helper.php: call to local_deleteoldquizattempts\helper->delete_attempts()
line 52 of /local/deleteoldquizattempts/cli/delete_attempts.php: call to local_deleteoldquizattempts\helper->delete_attempts_cli_handler()
Hi,
could you upgrade this plugin to have a possibility to give quizid as a parameter? We have just few quizzes where we would like to delete quiz attempts.
thanks and bye
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.