Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 24... Línea 24...
24
 *
24
 *
25
 * @package    mod_forum
25
 * @package    mod_forum
26
 * @copyright  2019 Ryan Wyllie <ryan@moodle.com>
26
 * @copyright  2019 Ryan Wyllie <ryan@moodle.com>
27
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
27
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
28
 */
28
 */
29
class exporters_discussion_test extends \advanced_testcase {
29
final class exporters_discussion_test extends \advanced_testcase {
Línea 30... Línea 30...
30
 
30
 
31
    /** @var \mod_forum\local\builders\exported_posts */
31
    /** @var \mod_forum\local\builders\exported_posts */
Línea 32... Línea 32...
32
    private $builder;
32
    private $builder;
33
 
33
 
34
    /**
34
    /**
35
     * Test set up function.
35
     * Test set up function.
-
 
36
     */
36
     */
37
    public function setUp(): void {
37
    public function setUp(): void {
38
        parent::setUp();
38
        // We must clear the subscription caches. This has to be done both before each test, and after in case of other
39
        // We must clear the subscription caches. This has to be done both before each test, and after in case of other
Línea 39... Línea 40...
39
        // tests using these functions.
40
        // tests using these functions.
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.
52
        \mod_forum\subscriptions::reset_forum_cache();
53
        \mod_forum\subscriptions::reset_forum_cache();
-
 
54
        parent::tearDown();
53
    }
55
    }
Línea 54... Línea 56...
54
 
56
 
55
    /**
57
    /**
56
     * Test the export function returns expected values.
58
     * Test the export function returns expected values.