. /** * Test-specific subclass to make some protected things public. * * @package core * @category test * @copyright 2022 onwards Eloy Lafuente (stronk7) {@link https://stronk7.com} * @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class testable_block_manager extends block_manager { /** * Resets the caches in the block manager. * This allows blocks to be reloaded correctly. */ public function reset_caches() { $this->birecordsbyregion = null; $this->blockinstances = array(); $this->visibleblockcontent = array(); } public function mark_loaded() { $this->birecordsbyregion = array(); } public function get_loaded_blocks() { return $this->birecordsbyregion; } }