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
 * @package    mod_forum
31
 * @package    mod_forum
32
 * @category   test
32
 * @category   test
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 maildigest_test extends \advanced_testcase {
36
final class maildigest_test extends \advanced_testcase {
Línea 37... Línea 37...
37
 
37
 
38
    // Make use of the cron tester trait.
38
    // Make use of the cron tester trait.
Línea 39... Línea 39...
39
    use mod_forum_tests_cron_trait;
39
    use mod_forum_tests_cron_trait;
Línea 51... Línea 51...
51
     * Set up message and mail sinks, and set up other requirements for the
51
     * Set up message and mail sinks, and set up other requirements for the
52
     * cron to be tested here.
52
     * cron to be tested here.
53
     */
53
     */
54
    public function setUp(): void {
54
    public function setUp(): void {
55
        global $CFG;
55
        global $CFG;
-
 
56
        parent::setUp();
Línea 56... Línea 57...
56
 
57
 
57
        // Messaging is not compatible with transactions...
58
        // Messaging is not compatible with transactions...
Línea 58... Línea 59...
58
        $this->preventResetByRollback();
59
        $this->preventResetByRollback();
Línea 92... Línea 93...
92
        $this->messagesink->clear();
93
        $this->messagesink->clear();
93
        $this->messagesink->close();
94
        $this->messagesink->close();
Línea 94... Línea 95...
94
 
95
 
95
        $this->mailsink->clear();
96
        $this->mailsink->clear();
-
 
97
        $this->mailsink->close();
96
        $this->mailsink->close();
98
        parent::tearDown();
Línea 97... Línea 99...
97
    }
99
    }
98
 
100
 
99
    /**
101
    /**