Add unit tests

This commit is contained in:
Emili Castells Guasch 2024-06-28 16:28:57 +02:00
parent 43f4d15cea
commit 0e6f6bfc97
2 changed files with 96 additions and 1 deletions

View file

@ -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();