Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 41... Línea 41...
41
    /**
41
    /**
42
     * Test the behaviour of moodlenet_send_activity().
42
     * Test the behaviour of moodlenet_send_activity().
43
     *
43
     *
44
     * @covers ::execute
44
     * @covers ::execute
45
     */
45
     */
46
    public function test_moodlenet_send_activity() {
46
    public function test_moodlenet_send_activity(): void {
47
        global $CFG;
47
        global $CFG;
48
        $this->resetAfterTest();
48
        $this->resetAfterTest();
49
        $this->setAdminUser();
49
        $this->setAdminUser();
Línea 50... Línea 50...
50
 
50
 
Línea 116... Línea 116...
116
     * Test execute_returns() method.
116
     * Test execute_returns() method.
117
     *
117
     *
118
     * @dataProvider return_resource_url_provider
118
     * @dataProvider return_resource_url_provider
119
     * @covers ::execute_returns
119
     * @covers ::execute_returns
120
     */
120
     */
121
    public function test_moodlenet_send_activity_return_resource_url(bool $state, string $resourceurl) {
121
    public function test_moodlenet_send_activity_return_resource_url(bool $state, string $resourceurl): void {
122
        $this->resetAfterTest();
122
        $this->resetAfterTest();
123
        // Create dummy result with the resourceurl.
123
        // Create dummy result with the resourceurl.
124
        $result = [
124
        $result = [
125
            'status' => true,
125
            'status' => true,
126
            'resourceurl' => $resourceurl,
126
            'resourceurl' => $resourceurl,