Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

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