Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Moodle 4.5 #225

Open
dmitriim opened this issue Nov 18, 2024 · 1 comment
Open

Support Moodle 4.5 #225

dmitriim opened this issue Nov 18, 2024 · 1 comment

Comments

@dmitriim
Copy link
Member

No description provided.

dmitriim added a commit that referenced this issue Nov 18, 2024
dmitriim added a commit that referenced this issue Nov 18, 2024
@dmitriim
Copy link
Member Author

Error running core privacy tests:

Debugging: Class "\tool_trigger\steps\actions\webservice_action_step" not found
* line 7562 of /lib/moodlelib.php: call to tool_trigger\privacy\provider::get_metadata()
* line 578 of /privacy/classes/manager.php: call to component_class_callback()
* line 611 of /privacy/classes/manager.php: call to core_privacy\manager::component_class_callback()
* line 204 of /privacy/classes/manager.php: call to core_privacy\manager->handled_component_class_callback()
* line 49 of /admin/tool/dataprivacy/classes/metadata_registry.php: call to core_privacy\manager->get_metadata_for_components()
* line 35 of /admin/tool/dataprivacy/tests/metadata_registry_test.php: call to tool_dataprivacy\metadata_registry->get_registry_metadata()
* line 51 of /admin/tool/dataprivacy/tests/metadata_registry_test.php: call to tool_dataprivacy\metadata_registry_test->get_meta_data()
* line 1617 of /vendor/phpunit/phpunit/src/Framework/TestCase.php: call to tool_dataprivacy\metadata_registry_test->test_get_registry_metadata_count()
* line 1223 of /vendor/phpunit/phpunit/src/Framework/TestCase.php: call to PHPUnit\Framework\TestCase->runTest()
* line 76 of /lib/phpunit/classes/advanced_testcase.php: call to PHPUnit\Framework\TestCase->runBare()
* line 729 of /vendor/phpunit/phpunit/src/Framework/TestResult.php: call to advanced_testcase->runBare()
* line 973 of /vendor/phpunit/phpunit/src/Framework/TestCase.php: call to PHPUnit\Framework\TestResult->run()
* line 685 of /vendor/phpunit/phpunit/src/Framework/TestSuite.php: call to PHPUnit\Framework\TestCase->run()
* line 685 of /vendor/phpunit/phpunit/src/Framework/TestSuite.php: call to PHPUnit\Framework\TestSuite->run()
* line 685 of /vendor/phpunit/phpunit/src/Framework/TestSuite.php: call to PHPUnit\Framework\TestSuite->run()
* line 651 of /vendor/phpunit/phpunit/src/TextUI/TestRunner.php: call to PHPUnit\Framework\TestSuite->run()
* line 146 of /vendor/phpunit/phpunit/src/TextUI/Command.php: call to PHPUnit\TextUI\TestRunner->run()
* line 99 of /vendor/phpunit/phpunit/src/TextUI/Command.php: call to PHPUnit\TextUI\Command->run()
* line 107 of /vendor/phpunit/phpunit/phpunit: call to PHPUnit\TextUI\Command::main()
* line 122 of /vendor/bin/phpunit: call to include()
EDebugging: Class "\tool_trigger\steps\actions\webservice_action_step" not found
* line 7562 of /lib/moodlelib.php: call to tool_trigger\privacy\provider::get_metadata()
* line 578 of /privacy/classes/manager.php: call to component_class_callback()
* line 611 of /privacy/classes/manager.php: call to core_privacy\manager::component_class_callback()
* line 204 of /privacy/classes/manager.php: call to core_privacy\manager->handled_component_class_callback()
* line 49 of /admin/tool/dataprivacy/classes/metadata_registry.php: call to core_privacy\manager->get_metadata_for_components()
* line 35 of /admin/tool/dataprivacy/tests/metadata_registry_test.php: call to tool_dataprivacy\metadata_registry->get_registry_metadata()
* line 75 of /admin/tool/dataprivacy/tests/metadata_registry_test.php: call to tool_dataprivacy\metadata_registry_test->get_meta_data()
* line 1617 of /vendor/phpunit/phpunit/src/Framework/TestCase.php: call to tool_dataprivacy\metadata_registry_test->test_get_registry_metadata_null_provider_details()
* line 1223 of /vendor/phpunit/phpunit/src/Framework/TestCase.php: call to PHPUnit\Framework\TestCase->runTest()
* line 76 of /lib/phpunit/classes/advanced_testcase.php: call to PHPUnit\Framework\TestCase->runBare()
* line 729 of /vendor/phpunit/phpunit/src/Framework/TestResult.php: call to advanced_testcase->runBare()
* line 973 of /vendor/phpunit/phpunit/src/Framework/TestCase.php: call to PHPUnit\Framework\TestResult->run()
* line 685 of /vendor/phpunit/phpunit/src/Framework/TestSuite.php: call to PHPUnit\Framework\TestCase->run()
* line 685 of /vendor/phpunit/phpunit/src/Framework/TestSuite.php: call to PHPUnit\Framework\TestSuite->run()
* line 685 of /vendor/phpunit/phpunit/src/Framework/TestSuite.php: call to PHPUnit\Framework\TestSuite->run()
* line 651 of /vendor/phpunit/phpunit/src/TextUI/TestRunner.php: call to PHPUnit\Framework\TestSuite->run()
* line 146 of /vendor/phpunit/phpunit/src/TextUI/Command.php: call to PHPUnit\TextUI\TestRunner->run()
* line 99 of /vendor/phpunit/phpunit/src/TextUI/Command.php: call to PHPUnit\TextUI\Command->run()
* line 107 of /vendor/phpunit/phpunit/phpunit: call to PHPUnit\TextUI\Command::main()
* line 122 of /vendor/bin/phpunit: call to include()
EDebugging: Class "\tool_trigger\steps\actions\webservice_action_step" not found
* line 7562 of /lib/moodlelib.php: call to tool_trigger\privacy\provider::get_metadata()
* line 578 of /privacy/classes/manager.php: call to component_class_callback()
* line 611 of /privacy/classes/manager.php: call to core_privacy\manager::component_class_callback()
* line 204 of /privacy/classes/manager.php: call to core_privacy\manager->handled_component_class_callback()
* line 49 of /admin/tool/dataprivacy/classes/metadata_registry.php: call to core_privacy\manager->get_metadata_for_components()
* line 35 of /admin/tool/dataprivacy/tests/metadata_registry_test.php: call to tool_dataprivacy\metadata_registry->get_registry_metadata()
* line 87 of /admin/tool/dataprivacy/tests/metadata_registry_test.php: call to tool_dataprivacy\metadata_registry_test->get_meta_data()
* line 1617 of /vendor/phpunit/phpunit/src/Framework/TestCase.php: call to tool_dataprivacy\metadata_registry_test->test_get_registry_metadata_provider_details()
* line 1223 of /vendor/phpunit/phpunit/src/Framework/TestCase.php: call to PHPUnit\Framework\TestCase->runTest()
* line 76 of /lib/phpunit/classes/advanced_testcase.php: call to PHPUnit\Framework\TestCase->runBare()
* line 729 of /vendor/phpunit/phpunit/src/Framework/TestResult.php: call to advanced_testcase->runBare()
* line 973 of /vendor/phpunit/phpunit/src/Framework/TestCase.php: call to PHPUnit\Framework\TestResult->run()
* line 685 of /vendor/phpunit/phpunit/src/Framework/TestSuite.php: call to PHPUnit\Framework\TestCase->run()
* line 685 of /vendor/phpunit/phpunit/src/Framework/TestSuite.php: call to PHPUnit\Framework\TestSuite->run()
* line 685 of /vendor/phpunit/phpunit/src/Framework/TestSuite.php: call to PHPUnit\Framework\TestSuite->run()
* line 651 of /vendor/phpunit/phpunit/src/TextUI/TestRunner.php: call to PHPUnit\Framework\TestSuite->run()
* line 146 of /vendor/phpunit/phpunit/src/TextUI/Command.php: call to PHPUnit\TextUI\TestRunner->run()
* line 99 of /vendor/phpunit/phpunit/src/TextUI/Command.php: call to PHPUnit\TextUI\Command->run()
* line 107 of /vendor/phpunit/phpunit/phpunit: call to PHPUnit\TextUI\Command::main()
* line 122 of /vendor/bin/phpunit: call to include()
E................                                           2093 / 2093 (100%)

Time: 04:47.317, Memory: 184.00 MB

There were 6 errors:

1) core_privacy\manager_test::test_installed_plugins
Unexpected debugging() call detected.
Debugging: Coding error detected, it must be fixed by a programmer: When including this file for a unit test, the test must be run in an isolated process. See the PHPUnit @runInSeparateProcess and @runTestsInSeparateProcesses annotations.
* line 35 of /lib/externallib.php: call to require_phpunit_isolation()
* line 21 of /admin/tool/trigger/classes/steps/actions/webservice_action_step.php: call to require_once()
* line 217 of /lib/classes/component.php: call to include_once()
* line 104 of /admin/tool/trigger/classes/privacy/provider.php: call to core\component::classloader()
* line 7562 of /lib/moodlelib.php: call to tool_trigger\privacy\provider::get_metadata()
* line 578 of /privacy/classes/manager.php: call to component_class_callback()
* line 611 of /privacy/classes/manager.php: call to core_privacy\manager::component_class_callback()
* line 204 of /privacy/classes/manager.php: call to core_privacy\manager->handled_component_class_callback()
* line 245 of /privacy/tests/manager_test.php: call to core_privacy\manager->get_metadata_for_components()
* line 1617 of /vendor/phpunit/phpunit/src/Framework/TestCase.php: call to core_privacy\manager_test->test_installed_plugins()
* line 1223 of /vendor/phpunit/phpunit/src/Framework/TestCase.php: call to PHPUnit\Framework\TestCase->runTest()
* line 76 of /lib/phpunit/classes/advanced_testcase.php: call to PHPUnit\Framework\TestCase->runBare()
* line 729 of /vendor/phpunit/phpunit/src/Framework/TestResult.php: call to advanced_testcase->runBare()
* line 973 of /vendor/phpunit/phpunit/src/Framework/TestCase.php: call to PHPUnit\Framework\TestResult->run()
* line 685 of /vendor/phpunit/phpunit/src/Framework/TestSuite.php: call to PHPUnit\Framework\TestCase->run()
* line 685 of /vendor/phpunit/phpunit/src/Framework/TestSuite.php: call to PHPUnit\Framework\TestSuite->run()
* line 685 of /vendor/phpunit/phpunit/src/Framework/TestSuite.php: call to PHPUnit\Framework\TestSuite->run()
* line 651 of /vendor/phpunit/phpunit/src/TextUI/TestRunner.php: call to PHPUnit\Framework\TestSuite->run()
* line 146 of /vendor/phpunit/phpunit/src/TextUI/Command.php: call to PHPUnit\TextUI\TestRunner->run()
* line 99 of /vendor/phpunit/phpunit/src/TextUI/Command.php: call to PHPUnit\TextUI\Command->run()
* line 107 of /vendor/phpunit/phpunit/phpunit: call to PHPUnit\TextUI\Command::main()
* line 122 of /vendor/bin/phpunit: call to include()


/var/www/moodle45/lib/phpunit/classes/advanced_testcase.php:101

2) core_privacy\privacy\provider_test::test_metadata_provider with data set "tool_trigger" ('tool_trigger', 'tool_trigger\privacy\provider')
Error: Class "\tool_trigger\steps\actions\webservice_action_step" not found

/var/www/moodle45/admin/tool/trigger/classes/privacy/provider.php:104
/var/www/moodle45/privacy/tests/privacy/provider_test.php:120
/var/www/moodle45/lib/phpunit/classes/advanced_testcase.php:76

3) core_privacy\privacy\provider_test::test_table_coverage
Error: Class "\tool_trigger\steps\actions\webservice_action_step" not found

/var/www/moodle45/admin/tool/trigger/classes/privacy/provider.php:104
/var/www/moodle45/privacy/tests/privacy/provider_test.php:318
/var/www/moodle45/lib/phpunit/classes/advanced_testcase.php:76

4) tool_dataprivacy\metadata_registry_test::test_get_registry_metadata_count
core\exception\coding_exception: Coding error detected, it must be fixed by a programmer: Call to undefined method (Please only call this method on a null provider.)

/var/www/moodle45/privacy/classes/manager.php:173
/var/www/moodle45/admin/tool/dataprivacy/classes/metadata_registry.php:69
/var/www/moodle45/admin/tool/dataprivacy/classes/metadata_registry.php:107
/var/www/moodle45/admin/tool/dataprivacy/tests/metadata_registry_test.php:35
/var/www/moodle45/admin/tool/dataprivacy/tests/metadata_registry_test.php:51
/var/www/moodle45/lib/phpunit/classes/advanced_testcase.php:76

5) tool_dataprivacy\metadata_registry_test::test_get_registry_metadata_null_provider_details
core\exception\coding_exception: Coding error detected, it must be fixed by a programmer: Call to undefined method (Please only call this method on a null provider.)

/var/www/moodle45/privacy/classes/manager.php:173
/var/www/moodle45/admin/tool/dataprivacy/classes/metadata_registry.php:69
/var/www/moodle45/admin/tool/dataprivacy/classes/metadata_registry.php:107
/var/www/moodle45/admin/tool/dataprivacy/tests/metadata_registry_test.php:35
/var/www/moodle45/admin/tool/dataprivacy/tests/metadata_registry_test.php:75
/var/www/moodle45/lib/phpunit/classes/advanced_testcase.php:76

6) tool_dataprivacy\metadata_registry_test::test_get_registry_metadata_provider_details
core\exception\coding_exception: Coding error detected, it must be fixed by a programmer: Call to undefined method (Please only call this method on a null provider.)

/var/www/moodle45/privacy/classes/manager.php:173
/var/www/moodle45/admin/tool/dataprivacy/classes/metadata_registry.php:69
/var/www/moodle45/admin/tool/dataprivacy/classes/metadata_registry.php:107
/var/www/moodle45/admin/tool/dataprivacy/tests/metadata_registry_test.php:35
/var/www/moodle45/admin/tool/dataprivacy/tests/metadata_registry_test.php:87
/var/www/moodle45/lib/phpunit/classes/advanced_testcase.php:76

ERRORS!
Tests: 2093, Assertions: 13511, Errors: 6.

dmitriim added a commit that referenced this issue Nov 29, 2024
issue #225: fix issue with privacy tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant