MDL-59211 analytics: Make cibot happy

Part of MDL-57791 epic.
This commit is contained in:
David Monllao
2017-07-24 08:36:49 +02:00
parent 1611308b58
commit 413f19bc49
138 changed files with 3002 additions and 394 deletions
+23 -3
View File
@@ -17,7 +17,7 @@
/**
* Unit tests for the model.
*
* @package analytics
* @package core_analytics
* @copyright 2017 David Monllaó {@link http://www.davidmonllao.com}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
@@ -32,7 +32,7 @@ require_once(__DIR__ . '/fixtures/test_target_shortname.php');
/**
* Unit tests for the model.
*
* @package analytics
* @package core_analytics
* @copyright 2017 David Monllaó {@link http://www.davidmonllao.com}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
@@ -142,12 +142,32 @@ class analytics_model_testcase extends advanced_testcase {
}
}
/**
* Testable version to change methods' visibility.
*
* @package core_analytics
* @copyright 2017 David Monllaó {@link http://www.davidmonllao.com}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class testable_model extends \core_analytics\model {
/**
* get_output_dir
*
* @param array $subdirs
* @return string
*/
public function get_output_dir($subdirs = array()) {
return parent::get_output_dir($subdirs);
}
/**
* init_analyser
*
* @param array $options
* @return void
*/
public function init_analyser($options = array()) {
return parent::init_analyser($options);
parent::init_analyser($options);
}
}