mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-65033 mod_forum: Fix up the unit tests
This commit is contained in:
parent
bf20111664
commit
27ca632f5d
@ -78,6 +78,7 @@ class mod_forum_vaults_discussion_list_testcase extends advanced_testcase {
|
||||
$datagenerator = $this->getDataGenerator();
|
||||
$vault = $this->vault;
|
||||
$user = $datagenerator->create_user();
|
||||
self::setUser($user);
|
||||
$course = $datagenerator->create_course();
|
||||
$forum = $datagenerator->create_module('forum', ['course' => $course->id]);
|
||||
|
||||
@ -127,6 +128,7 @@ class mod_forum_vaults_discussion_list_testcase extends advanced_testcase {
|
||||
$datagenerator = $this->getDataGenerator();
|
||||
$vault = $this->vault;
|
||||
$user = $datagenerator->create_user();
|
||||
self::setUser($user);
|
||||
$course = $datagenerator->create_course();
|
||||
$forum = $datagenerator->create_module('forum', ['course' => $course->id]);
|
||||
|
||||
@ -231,6 +233,7 @@ class mod_forum_vaults_discussion_list_testcase extends advanced_testcase {
|
||||
$datagenerator = $this->getDataGenerator();
|
||||
$vault = $this->vault;
|
||||
$user = $datagenerator->create_user();
|
||||
self::setUser($user);
|
||||
$course = $datagenerator->create_course();
|
||||
$forum = $datagenerator->create_module('forum', ['course' => $course->id]);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user