Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/16/2019 09:52:45 PM (5 years ago)
Author:
imath
Message:

Fix failing tests under WordPress trunk (5.3)

  1. Use do_action_ref_array() instead of do_action() to pass the BP_Friends_Friendship object by reference.
  2. Adapts the test_bp_has_members_search_pagination_with_spaces() test to WordPress changes in the paginate_links() function.

Fixes #8135

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/members/template.php

    r11737 r12459  
    4343        bp_has_members( $template_args );
    4444
    45         preg_match( '/&members_search=(.*)\'/', $members_template->pag_links, $matches );
     45        preg_match( '/&members_search=(.*)(\'|\")/', $members_template->pag_links, $matches );
    4646
    4747        $this->assertEquals( urldecode( $matches[1] ), urldecode( $template_args['search_terms'] ) );
Note: See TracChangeset for help on using the changeset viewer.