Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 175... Línea 175...
175
    /**
175
    /**
176
     * Test get user badge by hash.
176
     * Test get user badge by hash.
177
     * These are a basic tests since the badges_get_my_user_badges used by the external function already has unit tests.
177
     * These are a basic tests since the badges_get_my_user_badges used by the external function already has unit tests.
178
     * @covers ::execute
178
     * @covers ::execute
179
     */
179
     */
180
    public function test_get_user_badge_by_hash() {
180
    public function test_get_user_badge_by_hash(): void {
181
        $data = $this->prepare_test_data();
181
        $data = $this->prepare_test_data();
182
        $this->setUser($data['student1']);
182
        $this->setUser($data['student1']);
Línea 183... Línea 183...
183
 
183
 
184
        // Site badge.
184
        // Site badge.
Línea 203... Línea 203...
203
 
203
 
204
    /**
204
    /**
205
     * Test get user badge by hash with restrictions.
205
     * Test get user badge by hash with restrictions.
206
     * @covers ::execute
206
     * @covers ::execute
207
     */
207
     */
208
    public function test_get_user_badge_by_hash_with_restrictions() {
208
    public function test_get_user_badge_by_hash_with_restrictions(): void {
209
        $data = $this->prepare_test_data();
209
        $data = $this->prepare_test_data();
Línea 210... Línea 210...
210
        $this->setUser($data['student2']);
210
        $this->setUser($data['student2']);
211
 
211