Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 23... Línea 23...
23
 * @category   test
23
 * @category   test
24
 * @copyright  2021 Sara Arjona (sara@moodle.com)
24
 * @copyright  2021 Sara Arjona (sara@moodle.com)
25
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
25
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
26
 * @coversDefaultClass \tool_admin_presets\local\action\base
26
 * @coversDefaultClass \tool_admin_presets\local\action\base
27
 */
27
 */
28
class base_test extends \advanced_testcase {
28
final class base_test extends \advanced_testcase {
Línea 29... Línea 29...
29
 
29
 
30
    /**
30
    /**
31
     * Test the behaviour of log() method.
31
     * Test the behaviour of log() method.
32
     *
32
     *
Línea 68... Línea 68...
68
    /**
68
    /**
69
     * Data provider for test_base_log().
69
     * Data provider for test_base_log().
70
     *
70
     *
71
     * @return array
71
     * @return array
72
     */
72
     */
73
    public function log_provider(): array {
73
    public static function log_provider(): array {
74
        return [
74
        return [
75
            // Action = base.
75
            // Action = base.
76
            'action=base and mode = show' => [
76
            'action=base and mode = show' => [
77
                'action' => 'base',
77
                'action' => 'base',
78
                'mode' => 'show',
78
                'mode' => 'show',