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  2014 Dan Poltawski <dan@moodle.com>
33
 * @copyright  2014 Dan Poltawski <dan@moodle.com>
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 events_test extends \advanced_testcase {
36
final class events_test extends \advanced_testcase {
Línea 37... Línea 37...
37
 
37
 
38
    /**
38
    /**
39
     * Tests set up.
39
     * Tests set up.
40
     */
40
     */
-
 
41
    public function setUp(): void {
41
    public function setUp(): void {
42
        parent::setUp();
42
        // We must clear the subscription caches. This has to be done both before each test, and after in case of other
43
        // We must clear the subscription caches. This has to be done both before each test, and after in case of other
43
        // tests using these functions.
44
        // tests using these functions.
Línea 44... Línea 45...
44
        \mod_forum\subscriptions::reset_forum_cache();
45
        \mod_forum\subscriptions::reset_forum_cache();
Línea 48... Línea 49...
48
 
49
 
49
    public function tearDown(): void {
50
    public function tearDown(): void {
50
        // We must clear the subscription caches. This has to be done both before each test, and after in case of other
51
        // We must clear the subscription caches. This has to be done both before each test, and after in case of other
51
        // tests using these functions.
52
        // tests using these functions.
-
 
53
        \mod_forum\subscriptions::reset_forum_cache();
52
        \mod_forum\subscriptions::reset_forum_cache();
54
        parent::tearDown();
Línea 53... Línea 55...
53
    }
55
    }
54
 
56
 
55
    /**
57
    /**