Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 32... Línea 32...
32
 * @category   test
32
 * @category   test
33
 * @copyright  2011 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
33
 * @copyright  2011 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
34
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
34
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
35
 * @covers     \rating
35
 * @covers     \rating
36
 */
36
 */
37
class rating_test extends \advanced_testcase {
37
final class rating_test extends \advanced_testcase {
Línea 38... Línea 38...
38
 
38
 
39
    protected $syscontext;
39
    protected $syscontext;
40
    protected $neededcaps = array('view', 'viewall', 'viewany', 'rate');
40
    protected $neededcaps = array('view', 'viewall', 'viewany', 'rate');
Línea 277... Línea 277...
277
    /**
277
    /**
278
     * Data provider for get_aggregate_string tests.
278
     * Data provider for get_aggregate_string tests.
279
     *
279
     *
280
     * @return array
280
     * @return array
281
     */
281
     */
282
    public function get_aggregate_string_provider() {
282
    public static function get_aggregate_string_provider(): array {
283
        return [
283
        return [
284
            'Non-numeric aggregate produces empty string' => [
284
            'Non-numeric aggregate produces empty string' => [
285
                RATING_AGGREGATE_NONE,
285
                RATING_AGGREGATE_NONE,
286
                'string',
286
                'string',
287
                null,
287
                null,