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.

Differences Between: [Versions 310 and 401] [Versions 401 and 402] [Versions 401 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