Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 42... Línea 42...
42
 *
42
 *
43
 * @package   mod_glossary
43
 * @package   mod_glossary
44
 * @copyright Simey Lameze <simey@moodle.com>
44
 * @copyright Simey Lameze <simey@moodle.com>
45
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
45
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
46
 */
46
 */
47
class custom_completion_test extends advanced_testcase {
47
final class custom_completion_test extends advanced_testcase {
Línea 48... Línea 48...
48
 
48
 
49
    /**
49
    /**
50
     * Data provider for get_state().
50
     * Data provider for get_state().
51
     *
51
     *
52
     * @return array[]
52
     * @return array[]
53
     */
53
     */
54
    public function get_state_provider(): array {
54
    public static function get_state_provider(): array {
55
        return [
55
        return [
56
            'Undefined rule' => [
56
            'Undefined rule' => [
57
                'somenonexistentrule', COMPLETION_DISABLED, 0, null, coding_exception::class
57
                'somenonexistentrule', COMPLETION_DISABLED, 0, null, coding_exception::class
58
            ],
58
            ],
Línea 172... Línea 172...
172
    /**
172
    /**
173
     * Data provider for test_get_available_custom_rules().
173
     * Data provider for test_get_available_custom_rules().
174
     *
174
     *
175
     * @return array[]
175
     * @return array[]
176
     */
176
     */
177
    public function get_available_custom_rules_provider(): array {
177
    public static function get_available_custom_rules_provider(): array {
178
        return [
178
        return [
179
            'Completion submit available' => [
179
            'Completion submit available' => [
180
                COMPLETION_ENABLED, ['completionentries']
180
                COMPLETION_ENABLED, ['completionentries']
181
            ],
181
            ],
182
            'Completion submit not available' => [
182
            'Completion submit not available' => [