Skip to:
Content

BuddyPress.org

Changeset 7059


Ignore:
Timestamp:
05/13/2013 02:25:08 PM (11 years ago)
Author:
boonebgorges
Message:

Fixes test_bp_core_ajax_url() for new multisite unit test global manipulation

The changes introduced in r7058, which adds improvemens to go_to() for use on
multisite installations, uncovered a limitation in the test_bp_core_ajax_url()
test. Basically, it shows that bp_core_ajax_url() will always point to
admin-ajax.php of the current site, *not* the root blog. This should not be a
problem in most cases, though we should keep an eye out in the future to see
whether problems arise on mapped domains, where cross-domain AJAX calls may be
affected.

See #4761

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/testcases/url/url.php

    r7039 r7059  
    5555            $blog_details = get_blog_details();
    5656
    57             $this->go_to( '/' );
    58             $this->assertEquals( bp_core_ajax_url(), $blog_details->siteurl . '/wp-admin/admin-ajax.php' );
     57            $this->go_to( $blog_details->path );
     58            $this->assertEquals( $blog_details->siteurl . '/wp-admin/admin-ajax.php', bp_core_ajax_url() );
    5959
    6060            restore_current_blog();
Note: See TracChangeset for help on using the changeset viewer.