Proyectos de Subversion Moodle

Rev

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

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