MDL-48362 enrol_cohort: Fix unit test by manually triggering sync
authorDamyon Wiese <damyon@moodle.com>
Tue, 1 Mar 2016 06:25:48 +0000 (14:25 +0800)
committerDamyon Wiese <damyon@moodle.com>
Tue, 1 Mar 2016 06:25:48 +0000 (14:25 +0800)
commit74aece8719ecb07342c523fedf9cdb0a165e4f4e
tree85c897e279b59a54e84e46882786f1cd3464d824
parente3f24ac030123211e7fac52faf135e94a974ff6e
MDL-48362 enrol_cohort: Fix unit test by manually triggering sync

Sync is now automatically triggered by add/update instance. We need
to manually trigger sync before each part of the test to clean up
role assignments from the previous test.
enrol/cohort/tests/sync_test.php