Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 31... Línea 31...
31
 *
31
 *
32
 * @package    mod_forum
32
 * @package    mod_forum
33
 * @copyright  2013 Andrew Nicols
33
 * @copyright  2013 Andrew Nicols
34
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
34
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
35
 */
35
 */
36
class qanda_test extends \advanced_testcase {
36
final class qanda_test extends \advanced_testcase {
37
    // Make use of the cron tester trait.
37
    // Make use of the cron tester trait.
38
    use mod_forum_tests_cron_trait;
38
    use mod_forum_tests_cron_trait;
Línea 39... Línea 39...
39
 
39
 
40
    // Make use of the test generator trait.
40
    // Make use of the test generator trait.
Línea 50... Línea 50...
50
     */
50
     */
51
    protected $mailsink;
51
    protected $mailsink;
Línea 52... Línea 52...
52
 
52
 
53
    public function setUp(): void {
53
    public function setUp(): void {
-
 
54
        global $CFG;
Línea 54... Línea 55...
54
        global $CFG;
55
        parent::setUp();
55
 
56
 
56
        // We must clear the subscription caches. This has to be done both before each test, and after in case of other
57
        // We must clear the subscription caches. This has to be done both before each test, and after in case of other
57
        // tests using these functions.
58
        // tests using these functions.
Línea 80... Línea 81...
80
        unset($this->messagesink);
81
        unset($this->messagesink);
Línea 81... Línea 82...
81
 
82
 
82
        $this->mailsink->clear();
83
        $this->mailsink->clear();
83
        $this->mailsink->close();
84
        $this->mailsink->close();
-
 
85
        unset($this->mailsink);
84
        unset($this->mailsink);
86
        parent::tearDown();
Línea 85... Línea 87...
85
    }
87
    }
86
 
88
 
87
    /**
89
    /**