. namespace search_solr; /** * Search engine for testing purposes. * * @package search_solr * @category phpunit * @copyright 2016 Eric Merrill {@link http://www.merrilldigital.com} * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die; class testable_engine extends \search_solr\engine { /** * Function that lets us update the internally cached config object of the engine. */ public function test_set_config($name, $value) { $this->config->$name = $value; } }