Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

(no description)

File Size: 149 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: action_test  - X-Ref

Unit tests for a report action

test_add_callback_true()   X-Ref
Test adding a callback that returns true


test_add_callback_false()   X-Ref
Test adding a callback that returns false


action_title_provider()   X-Ref
Data provider for {@see test_action_title}

return: array[]

test_action_title(string $pixiconalt,array $attributes = [],?lang_string $title = null,array $row = [])   X-Ref
Test action title is correct

param: string $pixiconalt
param: array $attributes
param: lang_string|null $title
param: array $row

test_get_action_link_url_parameters()   X-Ref
Test that action link URL parameters have placeholders replaced


test_get_action_link_attributes()   X-Ref
Test that action link attributes have placeholders replaced


create_action(array $urlparams = [], array $attributes = [])   X-Ref
Helper method to create an action instance

return: action
param: array $urlparams
param: array $attributes