Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 64... Línea 64...
64
     * @param string $loginas Which user to log in as
64
     * @param string $loginas Which user to log in as
65
     * @param bool $private Whether we are creating a private template
65
     * @param bool $private Whether we are creating a private template
66
     * @param bool $expected Whether or not the form should be validated
66
     * @param bool $expected Whether or not the form should be validated
67
     * @dataProvider usetemplate_form_provider
67
     * @dataProvider usetemplate_form_provider
68
     */
68
     */
69
    public function test_usetemplate_form(string $loginas, bool $private, bool $expected) {
69
    public function test_usetemplate_form(string $loginas, bool $private, bool $expected): void {
70
        [$user, $feedback] = $this->setup_instance();
70
        [$user, $feedback] = $this->setup_instance();
71
        switch($loginas) {
71
        switch($loginas) {
72
            case 'admin':
72
            case 'admin':
73
                $this->setAdminUser();
73
                $this->setAdminUser();
74
                break;
74
                break;