Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 29... Línea 29...
29
 * @package     core
29
 * @package     core
30
 * @covers      \core_admin\external\set_block_protection
30
 * @covers      \core_admin\external\set_block_protection
31
 * @copyright   2023 Andrew Lyons <andrew@nicols.co.uk>
31
 * @copyright   2023 Andrew Lyons <andrew@nicols.co.uk>
32
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
32
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
33
 */
33
 */
34
class set_block_protection_test extends \externallib_advanced_testcase {
34
final class set_block_protection_test extends \externallib_advanced_testcase {
35
    /**
35
    /**
36
     * Test execute method with no login.
36
     * Test execute method with no login.
37
     */
37
     */
38
    public function test_execute_no_login(): void {
38
    public function test_execute_no_login(): void {
39
        $this->expectException(\require_login_exception::class);
39
        $this->expectException(\require_login_exception::class);
Línea 83... Línea 83...
83
    /**
83
    /**
84
     * Data provider for test_execute.
84
     * Data provider for test_execute.
85
     *
85
     *
86
     * @return array
86
     * @return array
87
     */
87
     */
88
    public function execute_provider(): array {
88
    public static function execute_provider(): array {
89
        return [
89
        return [
90
            [
90
            [
91
                'block_login',
91
                'block_login',
92
                1,
92
                1,
93
                true,
93
                true,