mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 14:57:26 +08:00
Add unit tests
This commit is contained in:
parent
43f4d15cea
commit
0e6f6bfc97
2 changed files with 96 additions and 1 deletions
|
@ -53,7 +53,7 @@ class DisabledFundingSources {
|
|||
* @return array|int[]|mixed|string[]
|
||||
* @throws NotFoundException When the setting is not found.
|
||||
*/
|
||||
public function sources( $context ) {
|
||||
public function sources( string $context ) {
|
||||
$disable_funding = $this->settings->has( 'disable_funding' )
|
||||
? $this->settings->get( 'disable_funding' )
|
||||
: array();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue