public function test_user_is_editing_off()
 {
     // We are relying on the fact that unit tests are always run by admin, to
     // ensure the user_allows_editing call returns true.
     // Setup fixture.
     global $USER;
     $this->testpage->set_context(context_system::instance());
     $this->setAdminUser();
     $USER->editing = false;
     // Validated.
     $this->assertFalse($this->testpage->user_is_editing());
 }