mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 20:50:21 +01:00
MDL-4188 core_message: Modify PHPUnit to turn off course welcome message
This commit is contained in:
parent
70f85b92e3
commit
c4e07686ea
@ -41,10 +41,20 @@ defined('MOODLE_INTERNAL') || die();
|
||||
*/
|
||||
class provider_test extends \core_privacy\tests\provider_testcase {
|
||||
|
||||
/**
|
||||
* Setup.
|
||||
*/
|
||||
protected function setUp(): void {
|
||||
parent::setUp();
|
||||
// Turn off the course welcome message, so we can easily test other messages.
|
||||
set_config('sendcoursewelcomemessage', 0, 'enrol_manual');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test for provider::get_metadata().
|
||||
*/
|
||||
public function test_get_metadata() {
|
||||
$this->resetAfterTest();
|
||||
$collection = new collection('core_message');
|
||||
$newcollection = provider::get_metadata($collection);
|
||||
$itemcollection = $newcollection->get_collection();
|
||||
|
Loading…
x
Reference in New Issue
Block a user