Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Differences Between: [Versions 402 and 403]

(no description)

File Size: 314 lines (12 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 lib/tests/moodlenet/helpers.php

Defines 1 class


Class: activity_sender_test  - X-Ref

Unit tests for {@see activity_sender}.

setUpBeforeClass()   X-Ref
No description

setUp()   X-Ref
Set up function for tests.


test_prepare_share_contents()   X-Ref
Test prepare_share_contents method.


test_get_resource_description()   X-Ref
Test get_resource_description method.


test_share_resource(ResponseInterface $httpresponse, array $expected)   X-Ref
Test share_resource() method.

param: ResponseInterface $httpresponse
param: array $expected

share_resource_provider()   X-Ref
Provider for test share_resource().

return: array Test data.