| Línea 25... |
Línea 25... |
| 25 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
25 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
| 26 |
* @covers \mod_forum_generator
|
26 |
* @covers \mod_forum_generator
|
| 27 |
*/
|
27 |
*/
|
| 28 |
final class generator_test extends \advanced_testcase {
|
28 |
final class generator_test extends \advanced_testcase {
|
| 29 |
public function setUp(): void {
|
29 |
public function setUp(): void {
|
| - |
|
30 |
parent::setUp();
|
| 30 |
// We must clear the subscription caches. This has to be done both before each test, and after in case of other
|
31 |
// We must clear the subscription caches. This has to be done both before each test, and after in case of other
|
| 31 |
// tests using these functions.
|
32 |
// tests using these functions.
|
| 32 |
\mod_forum\subscriptions::reset_forum_cache();
|
33 |
\mod_forum\subscriptions::reset_forum_cache();
|
| 33 |
}
|
34 |
}
|
| Línea 34... |
Línea 35... |
| 34 |
|
35 |
|
| 35 |
public function tearDown(): void {
|
36 |
public function tearDown(): void {
|
| 36 |
// We must clear the subscription caches. This has to be done both before each test, and after in case of other
|
37 |
// We must clear the subscription caches. This has to be done both before each test, and after in case of other
|
| 37 |
// tests using these functions.
|
38 |
// tests using these functions.
|
| - |
|
39 |
\mod_forum\subscriptions::reset_forum_cache();
|
| 38 |
\mod_forum\subscriptions::reset_forum_cache();
|
40 |
parent::tearDown();
|
| Línea 39... |
Línea 41... |
| 39 |
}
|
41 |
}
|
| 40 |
|
42 |
|