1
0
Fork 0
mirror of https://github.com/buddypress/buddypress.git synced 2026-07-23 21:06:56 +08:00
buddypress/tests/phpunit/assets/invitations-extensions.php
Mathieu Viet a4ac51b314 Groups: Avoid a PHP 8.0 deprecated notice about optional function arg.
The `BP_Groups_Invitation_Manager->run_acceptance_action()` method was wrongly using one optional arguments before a required one. As PHP 8.0 no longer accepts this practice, all arguments of the method will be required.

See #8392 (branch 6.0)


git-svn-id: https://buddypress.svn.wordpress.org/branches/6.0@12792 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2020-11-19 12:48:25 +00:00

18 lines
425 B
PHP

<?php
/**
* The following implementations of BP_Attachment act as dummy plugins
* for our unit tests
*/
class BPTest_Invitation_Manager_Extension extends BP_Invitation_Manager {
public function __construct( $args = array() ) {
parent::__construct( $args );
}
public function run_send_action( BP_Invitation $invitation ) {
return true;
}
public function run_acceptance_action( $type, $r ) {
return true;
}
}