Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 27... Línea 27...
27
 *
27
 *
28
 * @package    mod_forum
28
 * @package    mod_forum
29
 * @copyright  2019 Ryan Wyllie <ryan@moodle.com>
29
 * @copyright  2019 Ryan Wyllie <ryan@moodle.com>
30
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
30
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
31
 */
31
 */
32
class builders_exported_posts_test extends \advanced_testcase {
32
final class builders_exported_posts_test extends \advanced_testcase {
33
    // Make use of the test generator trait.
33
    // Make use of the test generator trait.
34
    use mod_forum_tests_generator_trait;
34
    use mod_forum_tests_generator_trait;
Línea 35... Línea 35...
35
 
35
 
36
    /** @var \mod_forum\local\builders\exported_posts */
36
    /** @var \mod_forum\local\builders\exported_posts */
Línea 37... Línea 37...
37
    private $builder;
37
    private $builder;
38
 
38
 
39
    /**
39
    /**
40
     * Set up function for tests.
40
     * Set up function for 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
Línea 44... Línea 45...
44
        // tests using these functions.
45
        // tests using these functions.
Línea 53... Línea 54...
53
     */
54
     */
54
    public function tearDown(): void {
55
    public function tearDown(): void {
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.
57
        \mod_forum\subscriptions::reset_forum_cache();
58
        \mod_forum\subscriptions::reset_forum_cache();
-
 
59
        parent::tearDown();
58
    }
60
    }
Línea 59... Línea 61...
59
 
61
 
60
    /**
62
    /**
61
     * Convert the stdClass values into their proper entity classes.
63
     * Convert the stdClass values into their proper entity classes.