Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 50... Línea 50...
50
    }
50
    }
Línea 51... Línea 51...
51
 
51
 
52
    /**
52
    /**
53
     * Test the current get_ratings method main sql
53
     * Test the current get_ratings method main sql
54
     */
54
     */
55
    public function test_get_ratings_sql() {
55
    public function test_get_ratings_sql(): void {
Línea 56... Línea 56...
56
        global $DB;
56
        global $DB;
57
 
57
 
58
        // We load 3 items. Each is rated twice. For simplicity itemid == user id of the item owner.
58
        // We load 3 items. Each is rated twice. For simplicity itemid == user id of the item owner.
Línea 343... Línea 343...
343
    /**
343
    /**
344
     * Test the value returned by get_aggregate_string().
344
     * Test the value returned by get_aggregate_string().
345
     *
345
     *
346
     * @dataProvider get_aggregate_string_provider
346
     * @dataProvider get_aggregate_string_provider
347
     */
347
     */
348
    public function test_get_aggregate_string($method, $aggregate, $isnumeric, $scaleitems, $expectation) {
348
    public function test_get_aggregate_string($method, $aggregate, $isnumeric, $scaleitems, $expectation): void {
349
        $options = new \stdClass();
349
        $options = new \stdClass();
350
        $options->aggregate = $aggregate;
350
        $options->aggregate = $aggregate;
351
        $options->context = null;
351
        $options->context = null;
352
        $options->component = null;
352
        $options->component = null;
353
        $options->ratingarea = null;
353
        $options->ratingarea = null;