-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
730b256
commit 334f619
Showing
4 changed files
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,7 +98,7 @@ public function tearDown(): void { | |
public function helper_create_user_and_discussion($maildigest) { | ||
// Create a user enrolled in the course as student. | ||
$this->user = $this->getDataGenerator()->create_user(['firstname' => 'Tamaro', 'email' => '[email protected]', | ||
'maildigest' => $maildigest]); | ||
'maildigest' => $maildigest, ]); | ||
$this->getDataGenerator()->enrol_user($this->user->id, $this->course->id, 'student'); | ||
|
||
// Create a new discussion and post within the moodleoverflow. | ||
|
@@ -165,7 +165,7 @@ public function test_delivery_not_enrolled(): void { | |
$location = ['course' => $course->id, 'forcesubscribe' => MOODLEOVERFLOW_FORCESUBSCRIBE]; | ||
$moodleoverflow = $this->getDataGenerator()->create_module('moodleoverflow', $location); | ||
$student = $this->getDataGenerator()->create_user(['firstname' => 'Ethan', 'email' => '[email protected]', | ||
'maildigest' => '1']); | ||
'maildigest' => '1', ]); | ||
$this->getDataGenerator()->enrol_user($student->id, $course->id, 'teacher'); | ||
$discussion = $this->generator->post_to_forum($moodleoverflow, $student); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters