Skip to content

Commit d702145

Browse files
committed
WIP: try to satisfy moodle ci
1 parent 1fba3f9 commit d702145

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

tests/behat/behat_mod_moodleoverflow.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ public function set_subscription_readtracking(string $username, string $modflown
562562
if ($readtype) {
563563
readtracking::moodleoverflow_start_tracking($modflow->id, $user->id);
564564
} else {
565-
readtracking::moodleoverflow_start_tracking($modflow->id, $user->id);
565+
readtracking::moodleoverflow_stop_tracking($modflow->id, $user->id);
566566
}
567567
}
568568

tests/behat/overview_report.feature

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ Feature: Testing overview integration in moodleoverflow activity
1111
| student1 | Student | 1 | student1@example.com | 10 | student |
1212
| teacher1 | Teacher | 1 | teacher1@example.com | 11 | editingteacher |
1313
And the following "activities" exist:
14-
| activity | name | intro | course | idnumber |
15-
| moodleoverflow | Test Moodleoverflow | Test moodleoverflow description | C1 | 1 |
14+
| activity | name | intro | course | idnumber | trackingtype | forcesubscribe |
15+
| moodleoverflow | Test Moodleoverflow | Test moodleoverflow description | C1 | 1 | 1 | 0 |
1616
And User "teacher1" adds to "Test Moodleoverflow" a discussion with topic "Topic1" and message "message1" automatically
1717
And User "student1" replies "message1" with "message2" automatically
18-
And User "student1" has in "Test Moodleoverflow" subscription "off" and readtracking "on"
1918

2019
Scenario: The bin to mark all unread posts as read should work
2120
When I am on the "C1" "course > activities > moodleoverflow" page logged in as "teacher1"

0 commit comments

Comments
 (0)