Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 23... Línea 23...
23
 * @category   test
23
 * @category   test
24
 * @coversDefaultClass \tool_langimport\controller
24
 * @coversDefaultClass \tool_langimport\controller
25
 * @copyright  2023 Andrew Lyons <andrew@nicols.co.uk>
25
 * @copyright  2023 Andrew Lyons <andrew@nicols.co.uk>
26
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
26
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
27
 */
27
 */
28
class controller_test extends \advanced_testcase {
28
final class controller_test extends \advanced_testcase {
Línea 29... Línea 29...
29
 
29
 
30
    /**
30
    /**
31
     * Test uninstall of language with invalid values.
31
     * Test uninstall of language with invalid values.
32
     *
32
     *
Línea 46... Línea 46...
46
    /**
46
    /**
47
     * Data provider for uninstall_lang tests with invalid values.
47
     * Data provider for uninstall_lang tests with invalid values.
48
     *
48
     *
49
     * @return array
49
     * @return array
50
     */
50
     */
51
    public function uninstall_lang_invalid_provider(): array {
51
    public static function uninstall_lang_invalid_provider(): array {
52
        return [
52
        return [
53
            'Empty string' => [''],
53
            'Empty string' => [''],
54
            'Meaningless empty string' => [' '],
54
            'Meaningless empty string' => [' '],
55
            'Default language' => ['en'],
55
            'Default language' => ['en'],
56
            'Invalid language string' => ['swedish'],
56
            'Invalid language string' => ['swedish'],