Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 23... Línea 23...
23
 * @package    tool_monitor
23
 * @package    tool_monitor
24
 * @category   test
24
 * @category   test
25
 * @copyright  2016 Jake Dallimore <jrhdallimore@gmail.com>
25
 * @copyright  2016 Jake Dallimore <jrhdallimore@gmail.com>
26
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
26
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
27
 */
27
 */
28
class task_check_subscriptions_test extends \advanced_testcase {
28
final class task_check_subscriptions_test extends \advanced_testcase {
Línea 29... Línea 29...
29
 
29
 
30
    private $course;
30
    private $course;
31
    private $user;
31
    private $user;
32
    private $rule;
32
    private $rule;
Línea 37... Línea 37...
37
    /**
37
    /**
38
     * Test set up.
38
     * Test set up.
39
     */
39
     */
40
    public function setUp(): void {
40
    public function setUp(): void {
41
        global $DB;
41
        global $DB;
-
 
42
        parent::setUp();
42
        set_config('enablemonitor', 1, 'tool_monitor');
43
        set_config('enablemonitor', 1, 'tool_monitor');
43
        $this->resetAfterTest(true);
44
        $this->resetAfterTest(true);
Línea 44... Línea 45...
44
 
45
 
45
        // All tests defined herein need a user, course, rule and subscription, so set these up.
46
        // All tests defined herein need a user, course, rule and subscription, so set these up.