moodleou / moodle-mod_oublog

Alternative blog module for Moodle 2 (including course blogs)
31 stars 27 forks source link

Moodle 3.6: failing unit test provider_testcase::test_userdata_provider_implements_userlist #97

Open gmrsagar opened 5 years ago

gmrsagar commented 5 years ago

1) provider_testcase::test_userdata_provider_implements_userlist with data set "mod_oublog" ('mod_oublog', 'mod_oublog\privacy\provider') Failed asserting that false is true.

/var/www/site/privacy/tests/provider_test.php:215 /var/www/site/lib/phpunit/classes/advanced_testcase.php:80

To re-run: vendor/bin/phpunit "provider_testcase" privacy/tests/provider_test.php

test_userdata_provider_implements_userlist requires that the privacy provider implements core_userlist_provider, which means oublog needs to include two functions: get_users_in_context and delete_data_for_users. These functions should take a list of users and return what data is stored for them or delete the data that is stored for those users.

There is more information here: https://docs.moodle.org/dev/Privacy_API#Retrieving_the_users_in_a_context

Will try to submit a PR for this soon.