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 Safat Shahin <safat.shahin@gmail.com>
35
 * @copyright  2023 Safat Shahin <safat.shahin@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_course
37
 * @coversDefaultClass \core\external\moodlenet_send_course
38
 */
38
 */
39
class moodlenet_send_course_test extends externallib_advanced_testcase {
39
final class moodlenet_send_course_test extends externallib_advanced_testcase {
Línea 40... Línea 40...
40
 
40
 
41
    /**
41
    /**
42
     * Test the behaviour of moodlenet_send_course().
42
     * Test the behaviour of moodlenet_send_course().
43
     *
43
     *
Línea 144... Línea 144...
144
    /**
144
    /**
145
     * Provider for test_moodlenet_send_course_return_resource_url().
145
     * Provider for test_moodlenet_send_course_return_resource_url().
146
     *
146
     *
147
     * @return array Test data.
147
     * @return array Test data.
148
     */
148
     */
149
    public function return_resource_url_provider(): array {
149
    public static function return_resource_url_provider(): array {
150
        return [
150
        return [
151
            'Success 1' => [
151
            'Success 1' => [
152
                true,
152
                true,
153
                'https://moodlenet.example.com/drafts/view/testcourse_backup.mbz',
153
                'https://moodlenet.example.com/drafts/view/testcourse_backup.mbz',
154
            ],
154
            ],