Skip to content

Commit f839b53

Browse files
committed
WIP: debug ci
1 parent d702145 commit f839b53

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

tests/behat/behat_mod_moodleoverflow.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,12 +558,15 @@ public function set_subscription_readtracking(string $username, string $modflown
558558
} else {
559559
subscriptions::unsubscribe_user($user->id, $modflow, $modcontext, true);
560560
}
561-
562561
if ($readtype) {
563562
readtracking::moodleoverflow_start_tracking($modflow->id, $user->id);
564563
} else {
565564
readtracking::moodleoverflow_stop_tracking($modflow->id, $user->id);
566565
}
566+
$subscriptions = $DB->get_records('moodleoverflow_subscriptions', ['moodleoverflow' => $modflow->id]);
567+
fwrite(STDOUT, "DEBUG: " . print_r($subscriptions, true) . PHP_EOL);
568+
$readtracking = $DB->get_records('moodleoverflow_tracking', ['moodleoverflowid' => $modflow->id]);
569+
fwrite(STDOUT, "DEBUG: " . print_r($readtracking, true) . PHP_EOL);
567570
}
568571

569572
// Internal helper functions.

tests/behat/overview_report.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Feature: Testing overview integration in moodleoverflow activity
1515
| 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"
1819

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

0 commit comments

Comments
 (0)