Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 30... Línea 30...
30
class sitepolicy_handler_test extends \advanced_testcase {
30
class sitepolicy_handler_test extends \advanced_testcase {
Línea 31... Línea 31...
31
 
31
 
32
    /**
32
    /**
33
     * Test behaviour of the {@link \tool_policy\privacy\local\sitepolicy\handler::get_redirect_url()} method.
33
     * Test behaviour of the {@link \tool_policy\privacy\local\sitepolicy\handler::get_redirect_url()} method.
34
     */
34
     */
35
    public function test_get_redirect_url() {
35
    public function test_get_redirect_url(): void {
36
        $this->resetAfterTest();
36
        $this->resetAfterTest();
Línea 37... Línea 37...
37
        $this->setAdminUser();
37
        $this->setAdminUser();
38
 
38
 
Línea 54... Línea 54...
54
    }
54
    }
Línea 55... Línea 55...
55
 
55
 
56
    /**
56
    /**
57
     * Test behaviour of the {@link \tool_policy\privacy\local\sitepolicy\handler::get_embed_url()} method.
57
     * Test behaviour of the {@link \tool_policy\privacy\local\sitepolicy\handler::get_embed_url()} method.
58
     */
58
     */
59
    public function test_get_embed_url() {
59
    public function test_get_embed_url(): void {
60
        $this->resetAfterTest();
60
        $this->resetAfterTest();
Línea 61... Línea 61...
61
        $this->setAdminUser();
61
        $this->setAdminUser();
62
 
62
 
Línea 80... Línea 80...
80
    }
80
    }
Línea 81... Línea 81...
81
 
81
 
82
    /**
82
    /**
83
     * Test behaviour of the {@link \tool_policy\privacy\local\sitepolicy\handler::accept()} method.
83
     * Test behaviour of the {@link \tool_policy\privacy\local\sitepolicy\handler::accept()} method.
84
     */
84
     */
85
    public function test_accept() {
85
    public function test_accept(): void {
86
        global $DB, $USER;
86
        global $DB, $USER;
Línea 87... Línea 87...
87
        $this->resetAfterTest();
87
        $this->resetAfterTest();
88
 
88
 
Línea 118... Línea 118...
118
    }
118
    }
Línea 119... Línea 119...
119
 
119
 
120
    /**
120
    /**
121
     * Test presence of the {@link \tool_policy\privacy\local\sitepolicy\handler::signup_form()} method.
121
     * Test presence of the {@link \tool_policy\privacy\local\sitepolicy\handler::signup_form()} method.
122
     */
122
     */
123
    public function test_signup_form() {
123
    public function test_signup_form(): void {
124
        $this->assertTrue(method_exists('\tool_policy\privacy\local\sitepolicy\handler', 'signup_form'));
124
        $this->assertTrue(method_exists('\tool_policy\privacy\local\sitepolicy\handler', 'signup_form'));
125
    }
125
    }