Search moodle.org's
Developer Documentation

See Release Notes

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

(no description)

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

Defines 1 class

set_plugin_state_test:: (4 methods):
  test_execute()
  execute_standard_provider()
  test_execute_no_login()
  test_execute_no_capability()


Class: set_plugin_state_test  - X-Ref

Unit tests to configure the enabled/disabled state of a plugin.

test_execute(string $plugin,?int $initialstate,int $newstate,int $notificationcount,)   X-Ref
Text execute method.

param: string $plugin The name of the plugin
param: int|null $initialstate The initial state of the plugin
param: int $newstate The target state
param: int $notificationcount The number of notifications expected

execute_standard_provider()   X-Ref
Data provider for base tests of the execute method.

return: array

test_execute_no_login()   X-Ref
Test execute method with no login.


test_execute_no_capability()   X-Ref
Test execute method with no login.