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
 *
30
 *
31
 * @package    mod_forum
31
 * @package    mod_forum
32
 * @copyright  2019 Andrew Nicols <andrew@nicols.co.uk>
32
 * @copyright  2019 Andrew Nicols <andrew@nicols.co.uk>
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 private_replies_test extends \advanced_testcase {
35
final class private_replies_test extends \advanced_testcase {
Línea 36... Línea 36...
36
 
36
 
Línea 37... Línea 37...
37
    use mod_forum_tests_generator_trait;
37
    use mod_forum_tests_generator_trait;
38
 
38
 
39
    /**
39
    /**
40
     * Setup before tests.
40
     * Setup before tests.
-
 
41
     */
41
     */
42
    public function setUp(): void {
42
    public function setUp(): void {
43
        parent::setUp();
43
        // We must clear the subscription caches. This has to be done both before each test, and after in case of other
44
        // We must clear the subscription caches. This has to be done both before each test, and after in case of other
44
        // tests using these functions.
45
        // tests using these functions.
Línea 50... Línea 51...
50
     */
51
     */
51
    public function tearDown(): void {
52
    public function tearDown(): void {
52
        // We must clear the subscription caches. This has to be done both before each test, and after in case of other
53
        // We must clear the subscription caches. This has to be done both before each test, and after in case of other
53
        // tests using these functions.
54
        // tests using these functions.
54
        \mod_forum\subscriptions::reset_forum_cache();
55
        \mod_forum\subscriptions::reset_forum_cache();
-
 
56
        parent::tearDown();
55
    }
57
    }
Línea 56... Línea 58...
56
 
58
 
57
    /**
59
    /**
58
     * Ensure that the forum_post_is_visible_privately function reports that a post is visible to a user when another
60
     * Ensure that the forum_post_is_visible_privately function reports that a post is visible to a user when another