Skip to content

Commit

Permalink
MDL-35762 whitespace fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Nov 6, 2012
1 parent 278714a commit 086f5f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tests/modinfolib_test.php
Expand Up @@ -167,15 +167,15 @@ public function test_is_user_access_restricted_by_conditional_access() {
// If the activity is unavailable and set to be hidden entirely its restricted unless user has 'moodle/course:viewhiddenactivities'
$cm_info->available = false;
$cm_info->showavailability = CONDITION_STUDENTVIEW_HIDE;

// Switch to a teacher and reload the context info
$this->setUser($teacher);
$cm_info = $this->refresh_cm_info($course, $assign);

$this->assertTrue(has_capability('moodle/course:viewhiddenactivities', $coursecontext));
$this->assertFalse($cm_info->is_user_access_restricted_by_conditional_access());
}

private function refresh_cm_info($course, $assign) {
get_fast_modinfo(0, 0, true);
return get_fast_modinfo($course)->instances['assign'][$assign->id];
Expand Down

0 comments on commit 086f5f9

Please sign in to comment.