Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 21... Línea 21...
21
 *
21
 *
22
 * @author Peter Dias
22
 * @author Peter Dias
23
 * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
23
 * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
24
 * @package mod_feedback
24
 * @package mod_feedback
25
 */
25
 */
26
class use_template_form_test extends \advanced_testcase {
26
final class use_template_form_test extends \advanced_testcase {
27
    /**
27
    /**
28
     * Run the basic setup for the test
28
     * Run the basic setup for the test
29
     */
29
     */
30
    public function setup_instance(): array {
30
    public function setup_instance(): array {
31
        global $DB, $PAGE;
31
        global $DB, $PAGE;
Línea 98... Línea 98...
98
    /**
98
    /**
99
     * Provider for the test_usetemplate_form test
99
     * Provider for the test_usetemplate_form test
100
     *
100
     *
101
     * @return array
101
     * @return array
102
     */
102
     */
103
    public function usetemplate_form_provider() {
103
    public static function usetemplate_form_provider(): array {
104
        return [
104
        return [
105
            'Test submission with a private template as an admin' => [
105
            'Test submission with a private template as an admin' => [
106
                'admin', true, true
106
                'admin', true, true
107
            ],
107
            ],
108
            'Test submission with a public template as an admin' => [
108
            'Test submission with a public template as an admin' => [