Proyectos de Subversion Moodle

Rev

Rev 11 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 11 Rev 1441
Línea 26... Línea 26...
26
 *
26
 *
27
 * @package   core_analytics
27
 * @package   core_analytics
28
 * @copyright 2017 David Monllaó {@link http://www.davidmonllao.com}
28
 * @copyright 2017 David Monllaó {@link http://www.davidmonllao.com}
29
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
29
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
30
 */
30
 */
31
class prediction_actions_test extends \advanced_testcase {
31
final class prediction_actions_test extends \advanced_testcase {
Línea 32... Línea 32...
32
 
32
 
33
    /** @var model Store Model. */
33
    /** @var model Store Model. */
Línea 34... Línea 34...
34
    protected $model;
34
    protected $model;
Línea 57... Línea 57...
57
    /**
57
    /**
58
     * Common startup tasks
58
     * Common startup tasks
59
     */
59
     */
60
    public function setUp(): void {
60
    public function setUp(): void {
61
        global $DB;
61
        global $DB;
-
 
62
        parent::setUp();
Línea 62... Línea 63...
62
 
63
 
63
        $this->setAdminUser();
64
        $this->setAdminUser();
64
        $target = \core_analytics\manager::get_target('test_target_shortname');
65
        $target = \core_analytics\manager::get_target('test_target_shortname');
65
        $indicators = array('test_indicator_max');
66
        $indicators = array('test_indicator_max');
Línea 133... Línea 134...
133
    /**
134
    /**
134
     * Data provider for test_get_executed_actions.
135
     * Data provider for test_get_executed_actions.
135
     *
136
     *
136
     * @return  array
137
     * @return  array
137
     */
138
     */
138
    public function execute_actions_provider(): array {
139
    public static function execute_actions_provider(): array {
139
        return [
140
        return [
140
            'Empty actions with no filter' => [
141
            'Empty actions with no filter' => [
141
                [],
142
                [],
142
                [],
143
                [],
143
                0
144
                0