public function __construct(moodle_page $page = null) { global $PAGE; if ($page === null) { $page = $PAGE; } parent::__construct($page); $this->cache = new navigation_cache('unittest_nav'); }