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_data
43
 * @package   mod_data
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 171... Línea 171...
171
    /**
171
    /**
172
     * Data provider for test_get_available_custom_rules().
172
     * Data provider for test_get_available_custom_rules().
173
     *
173
     *
174
     * @return array[]
174
     * @return array[]
175
     */
175
     */
176
    public function get_available_custom_rules_provider(): array {
176
    public static function get_available_custom_rules_provider(): array {
177
        return [
177
        return [
178
            'Completion entries available' => [
178
            'Completion entries available' => [
179
                COMPLETION_ENABLED, ['completionentries']
179
                COMPLETION_ENABLED, ['completionentries']
180
            ],
180
            ],
181
            'Completion entries not available' => [
181
            'Completion entries not available' => [