Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 34... Línea 34...
34
 * @category   test
34
 * @category   test
35
 * @copyright  2023 Huong Nguyen <huongnv13@gmail.com>
35
 * @copyright  2023 Huong Nguyen <huongnv13@gmail.com>
36
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
36
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
37
 * @coversDefaultClass \core\external\moodlenet_send_activity
37
 * @coversDefaultClass \core\external\moodlenet_send_activity
38
 */
38
 */
39
class moodlenet_send_activity_test extends externallib_advanced_testcase {
39
final class moodlenet_send_activity_test extends externallib_advanced_testcase {
Línea 40... Línea 40...
40
 
40
 
41
    /**
41
    /**
42
     * Test the behaviour of moodlenet_send_activity().
42
     * Test the behaviour of moodlenet_send_activity().
43
     *
43
     *
Línea 138... Línea 138...
138
    /**
138
    /**
139
     * Provider for test_moodlenet_send_activity_return_resource_url().
139
     * Provider for test_moodlenet_send_activity_return_resource_url().
140
     *
140
     *
141
     * @return array Test data.
141
     * @return array Test data.
142
     */
142
     */
143
    public function return_resource_url_provider(): array {
143
    public static function return_resource_url_provider(): array {
144
        return [
144
        return [
145
            'Success 1' => [
145
            'Success 1' => [
146
                true,
146
                true,
147
                'https://moodlenet.example.com/drafts/view/testactivity_backup.mbz',
147
                'https://moodlenet.example.com/drafts/view/testactivity_backup.mbz',
148
            ],
148
            ],