Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/15/2015 07:26:37 AM (9 years ago)
Author:
netweb
Message:

Tests: Don't use hardcoded example.org domain is test assertions.

This changeset allows the default domain used in tests to be overridden using WP_TESTS_DOMAIN in wp-tests-config.php

File:
1 edited

Legend:

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

    r5720 r5914  
    2727
    2828        $feed_link = bbp_get_forum_topics_feed_link( $f );
    29         $this->assertSame( '<a href="http://example.org/?feed=rss2&#038;forum=forum-1" class="bbp-forum-rss-link topics"><span>Topics</span></a>', $feed_link );
     29        $this->assertSame( '<a href="http://' . WP_TESTS_DOMAIN . '/?feed=rss2&#038;forum=forum-1" class="bbp-forum-rss-link topics"><span>Topics</span></a>', $feed_link );
    3030    }
    3131
     
    4747
    4848        $feed_link = bbp_get_forum_replies_feed_link( $f );
    49         $this->assertSame( '<a href="http://example.org/?type=reply&#038;feed=rss2&#038;forum=forum-1" class="bbp-forum-rss-link replies"><span>Replies</span></a>', $feed_link );
     49        $this->assertSame( '<a href="http://' . WP_TESTS_DOMAIN . '/?type=reply&#038;feed=rss2&#038;forum=forum-1" class="bbp-forum-rss-link replies"><span>Replies</span></a>', $feed_link );
    5050    }
    5151}
Note: See TracChangeset for help on using the changeset viewer.