Skip to content

Commit f207468

Browse files
committed
rollback
1 parent d215afa commit f207468

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

tests/review_test.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,6 @@ public function test_forum_review_everything(): void {
118118
$posts = $this->create_post($options);
119119
$this->check_mail_records($posts['teacherpost'], $posts['studentpost'], 1, 0, MOODLEOVERFLOW_MAILED_REVIEW_SUCCESS);
120120

121-
if ($CFG->branch >= 404) {
122-
sleep(1); // Added delay
123-
}
124121
$this->assertEquals(1, $this->mailsink->count()); // Teacher has to approve student message.
125122
$this->assertEquals(2, $this->messagesink->count()); // Student and teacher get notification for student message.
126123

@@ -185,9 +182,6 @@ public function test_forum_review_only_questions(): void {
185182
$posts = $this->create_post($options);
186183
$this->check_mail_records($posts['teacherpost'], $posts['studentpost'], 1, 0, MOODLEOVERFLOW_MAILED_REVIEW_SUCCESS);
187184

188-
if ($CFG->branch >= 404) {
189-
sleep(1); // Added delay
190-
}
191185
$this->assertEquals(1, $this->mailsink->count()); // Teacher has to approve student message.
192186
$this->assertEquals(2, $this->messagesink->count()); // Student and teacher get notification for student message.
193187

@@ -221,7 +215,6 @@ public function test_forum_review_only_questions(): void {
221215
* Test reviews functionality when reviewing is allowed in admin settings.
222216
*/
223217
public function test_forum_review_disallowed(): void {
224-
global $CFG;
225218
$options = ['course' => $this->course->id, 'needsreview' => review::EVERYTHING,
226219
'forcesubscribe' => MOODLEOVERFLOW_FORCESUBSCRIBE, ];
227220

@@ -230,9 +223,6 @@ public function test_forum_review_disallowed(): void {
230223
$posts = $this->create_post($options);
231224
$this->check_mail_records($posts['teacherpost'], $posts['studentpost'], 1, 1, MOODLEOVERFLOW_MAILED_SUCCESS);
232225

233-
if ($CFG->branch >= 404) {
234-
sleep(1); // Added delay
235-
}
236226
$this->assertEquals(0, $this->mailsink->count()); // Teacher has to approve student message.
237227
$this->assertEquals(4, $this->messagesink->count()); // Student and teacher get notification for student message.
238228

0 commit comments

Comments
 (0)