Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/28/2021 11:49:43 PM (6 months ago)
Author:
dcavins
Message:

BP_Invitation_Manager: Improve method return values.

In send_invitation_by_id() and
send_request_notification_by_id(), rather than
returning the number of database rows that were
updated, return the result of the the method
run_send_action().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/core/invitations.php

    r12873 r12914  
    5656        );
    5757        $i1 = $invites_class->add_invitation( $invite_args );
    58         // Attempt to create a duplicate.
    59         $this->assertFalse( $invites_class->add_invitation( $invite_args ) );
     58        // Attempt to create a duplicate. Should return existing invite.
     59        $i2 = $invites_class->add_invitation( $invite_args );
     60        $this->assertEquals( $i1, $i2 );
    6061
    6162        $this->set_current_user( $old_current_user );
Note: See TracChangeset for help on using the changeset viewer.