Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 22... Línea 22...
22
 * @package   mod_wiki
22
 * @package   mod_wiki
23
 * @copyright 2024 Laurent David <laurent.david@moodle.com>
23
 * @copyright 2024 Laurent David <laurent.david@moodle.com>
24
 *
24
 *
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
 */
26
 */
27
class restore_format_test extends \advanced_testcase {
27
final class restore_format_test extends \advanced_testcase {
Línea 28... Línea 28...
28
 
28
 
29
    /**
29
    /**
30
     * Data provider for test_duplicating_wiki_removes_unwanted_formats.
30
     * Data provider for test_duplicating_wiki_removes_unwanted_formats.
31
     *
31
     *
32
     * @return array[]
32
     * @return array[]
33
     */
33
     */
34
    public static function restore_format_test_provider(): array {
34
    public static function restore_format_test_provider(): array {
35
        return [
35
        return [
36
            'creole' => [
36
            'creole' => [
37
                'data' => 'creole',
37
                'format' => 'creole',
38
                'expected' => 'creole',
38
                'expected' => 'creole',
39
            ],
39
            ],
40
            'html' => [
40
            'html' => [
41
                'data' => 'html',
41
                'format' => 'html',
42
                'expected' => 'html',
42
                'expected' => 'html',
43
            ],
43
            ],
44
            'wikimarkup' => [
44
            'wikimarkup' => [
45
                'data' => 'nwiki',
45
                'format' => 'nwiki',
46
                'expected' => 'nwiki',
46
                'expected' => 'nwiki',
47
            ],
47
            ],
48
            'wrong format' => [
48
            'wrong format' => [
49
                'data' => '../wrongformat123',
49
                'format' => '../wrongformat123',
50
                'expected' => 'wrongformat',
50
                'expected' => 'wrongformat',
51
            ],
51
            ],
52
        ];
52
        ];