Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 32... Línea 32...
32
 * @package    mod_forum
32
 * @package    mod_forum
33
 * @copyright  2019 Ryan Wyllie <ryan@moodle.com>
33
 * @copyright  2019 Ryan Wyllie <ryan@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
 * @coversDefaultClass \mod_forum\local\managers\capability
35
 * @coversDefaultClass \mod_forum\local\managers\capability
36
 */
36
 */
37
class managers_capability_test extends \advanced_testcase {
37
final class managers_capability_test extends \advanced_testcase {
38
    // Make use of the test generator trait.
38
    // Make use of the test generator trait.
39
    use mod_forum_tests_generator_trait;
39
    use mod_forum_tests_generator_trait;
Línea 40... Línea 40...
40
 
40
 
41
    /** @var stdClass */
41
    /** @var stdClass */
Línea 77... Línea 77...
77
    /**
77
    /**
78
     * Setup function before each test.
78
     * Setup function before each test.
79
     */
79
     */
80
    public function setUp(): void {
80
    public function setUp(): void {
81
        global $DB;
81
        global $DB;
-
 
82
        parent::setUp();
Línea 82... Línea 83...
82
 
83
 
83
        // We must clear the subscription caches. This has to be done both before each test, and after in case of other
84
        // We must clear the subscription caches. This has to be done both before each test, and after in case of other
84
        // tests using these functions.
85
        // tests using these functions.
Línea 111... Línea 112...
111
     */
112
     */
112
    public function tearDown(): void {
113
    public function tearDown(): void {
113
        // We must clear the subscription caches. This has to be done both before each test, and after in case of other
114
        // We must clear the subscription caches. This has to be done both before each test, and after in case of other
114
        // tests using these functions.
115
        // tests using these functions.
115
        \mod_forum\subscriptions::reset_forum_cache();
116
        \mod_forum\subscriptions::reset_forum_cache();
-
 
117
        parent::tearDown();
116
    }
118
    }
Línea 117... Línea 119...
117
 
119
 
118
    /**
120
    /**
119
     * Helper function to create a forum entity.
121
     * Helper function to create a forum entity.