Skip to content

Commit 74c174b

Browse files
committed
debug
1 parent b364c06 commit 74c174b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/behat/behat_mod_moodleoverflow.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ public function should_be_subscribed(string $type, string $modflowname) {
511511
fwrite(STDOUT, "IS subscribed to moodleoverflow: " . var_export($a, true) . PHP_EOL);
512512
$c = subscriptions::is_subscribed($USER->id, $moodleoverflow, context_module::instance($cm->id));
513513
fwrite(STDOUT, "IS_SUBSCRIBE: " . var_export($c, true) . PHP_EOL);
514-
fwrite(STDOUT, "THE USER: " . var_export($USER->id, true) . var_export($USER->name, true) . PHP_EOL);
514+
fwrite(STDOUT, "THE USER: " . var_export($USER->id, true) . var_export($USER->username, true) . PHP_EOL);
515515
if ($type == 'not') {
516516
if (subscriptions::is_subscribed($USER->id, $moodleoverflow, context_module::instance($cm->id))) {
517517
throw new Exception("User should not be subscribed but is already subscribed");

0 commit comments

Comments
 (0)