MDL-62781 question/privacy: fix tests with CodeRunner is installed
authorTim Hunt <T.J.Hunt@open.ac.uk>
Fri, 22 Jun 2018 09:45:56 +0000 (10:45 +0100)
committerJun Pataleta <jun@moodle.com>
Wed, 18 Jul 2018 01:57:49 +0000 (09:57 +0800)
commit7ca1b32808b660193e81f53860ca93360b063340
tree7a27f3c49e681f93953d70660637d26192cb1e25
parent8c5162684144853a8ee3abd0862489e88421ab83
MDL-62781 question/privacy: fix tests with CodeRunner is installed

The tests were assuming that no plugin ever created questions on
install.

Also change the tests to do the counting in the DB. That is more
efficient.
question/tests/privacy_provider_test.php