Permalink
Browse files

MDL-35762 whitespace fix

  • Loading branch information...
1 parent 278714a commit 086f5f9ea8e426b6269ec32643c39bcb528c87a7 @stronk7 stronk7 committed Nov 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/tests/modinfolib_test.php
@@ -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];

0 comments on commit 086f5f9

Please sign in to comment.