Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

(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

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