Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 39... Línea 39...
39
 *
39
 *
40
 * @package    mod_forum
40
 * @package    mod_forum
41
 * @copyright Andrew Nicols <andrew@nicols.co.uk>
41
 * @copyright Andrew Nicols <andrew@nicols.co.uk>
42
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
42
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
43
 */
43
 */
44
class forum_gradeitem_test extends \advanced_testcase {
44
final class forum_gradeitem_test extends \advanced_testcase {
45
    use \mod_forum_tests_generator_trait;
45
    use \mod_forum_tests_generator_trait;
Línea 46... Línea 46...
46
 
46
 
47
    /**
47
    /**
48
     * Test fetching of a grade for a user when the grade has been created.
48
     * Test fetching of a grade for a user when the grade has been created.
Línea 214... Línea 214...
214
    /**
214
    /**
215
     * Data provider for test_should_grade_only_active_users.
215
     * Data provider for test_should_grade_only_active_users.
216
     *
216
     *
217
     * @return array
217
     * @return array
218
     */
218
     */
219
    public function should_grade_only_active_users_provider(): array {
219
    public static function should_grade_only_active_users_provider(): array {
220
        return [
220
        return [
221
            'Enabled showonlyactiveenrol setting; enabled showonlyactiveenrol preference; view suspended users capability' =>
221
            'Enabled showonlyactiveenrol setting; enabled showonlyactiveenrol preference; view suspended users capability' =>
222
                [
222
                [
223
                    'showonlyactiveenrolconfig' => true,
223
                    'showonlyactiveenrolconfig' => true,
224
                    'showonlyactiveenrolpreference' => true,
224
                    'showonlyactiveenrolpreference' => true,