Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 310 and 311] [Versions 311 and 402] [Versions 311 and 403]

Testing helper class methods in payments API

Copyright: 2020 Marina Glancy
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 202 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: helper_test  - X-Ref

Testing helper class methods in payments API

enable_paypal_gateway()   X-Ref
No description

test_create_account()   X-Ref
No description

test_update_account_details()   X-Ref
No description

test_update_account_gateways()   X-Ref
No description

test_delete_account()   X-Ref
No description

test_archive_restore_account()   X-Ref
No description

get_rounded_cost_provider()   X-Ref
Provider for format_cost test

return: array

get_cost_as_string_provider()   X-Ref
Provider for test_get_cost_as_string

return: array[]

test_get_rounded_cost(float $amount, string $currency, float $surcharge, float $expected)   X-Ref
Test for test_format_cost function

param: float $amount
param: string $currency
param: float $surcharge
param: string $expected

test_get_cost_as_string(float $amount, string $currency, float $surcharge, string $expected)   X-Ref
Test for get_cost_as_string function

param: float $amount
param: string $currency
param: float $surcharge
param: string $expected