Skip to content

Commit

Permalink
MDL-45753 events: Fix event context
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monllao committed Jul 25, 2016
1 parent d6a85f4 commit 46ac7b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion my/tests/events_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function test_dashboard_viewed() {
$user = $this->user;
// Trigger an event: dashboard viewed.
$eventparams = array(
'context' => $context = context_system::instance()
'context' => $context = context_user::instance($user->id)
);

$event = \core\event\dashboard_viewed::create($eventparams);
Expand Down

0 comments on commit 46ac7b0

Please sign in to comment.