Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 22... Línea 22...
22
 * @package     core
22
 * @package     core
23
 * @copyright   2023 Andrew Nicols <andrew@nicols.co.uk>
23
 * @copyright   2023 Andrew Nicols <andrew@nicols.co.uk>
24
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
24
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
25
 * @covers     \core\cron
25
 * @covers     \core\cron
26
 */
26
 */
27
class cron_test extends \advanced_testcase {
27
final class cron_test extends \advanced_testcase {
28
    /**
28
    /**
29
     * Reset relevant caches between tests.
29
     * Reset relevant caches between tests.
30
     */
30
     */
31
    public function setUp(): void {
31
    public function setUp(): void {
-
 
32
        parent::setUp();
32
        cron::reset_user_cache();
33
        cron::reset_user_cache();
33
    }
34
    }
Línea 34... Línea 35...
34
 
35
 
35
    /**
36
    /**
36
     * Test the setup_user function.
-
 
37
     *
-
 
38
     * @covers ::setup_user
-
 
39
     * @covers ::reset_user_cache
37
     * Test the setup_user function.
40
     */
38
     */
41
    public function test_setup_user(): void {
39
    public function test_setup_user(): void {
42
        // This function uses the $GLOBALS super global. Disable the VariableNameLowerCase sniff for this function.
40
        // This function uses the $GLOBALS super global. Disable the VariableNameLowerCase sniff for this function.
43
        // phpcs:disable moodle.NamingConventions.ValidVariableName.VariableNameLowerCase
41
        // phpcs:disable moodle.NamingConventions.ValidVariableName.VariableNameLowerCase