MDL-47502 statslib tests: improve test
authorDan Poltawski <dan@moodle.com>
Tue, 11 Nov 2014 19:23:51 +0000 (19:23 +0000)
committerDan Poltawski <dan@moodle.com>
Tue, 11 Nov 2014 19:25:49 +0000 (19:25 +0000)
commit73f755a7997ee9375066301cecd83c9c955a41e7
treebbfe7e7fa4b3ac8fa51eb09e3f27f30411ac0224
parentba923f4f9a494675ecdcf62e330418d64f59bc89
MDL-47502 statslib tests: improve test

While integrating I noticed some problems which already existed in this
test:
* The enrolment data generator was not used
* The student roleid was hardocded
* The role assignment was at site level..
lib/tests/statslib_test.php