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/topics/template/links.php

    r5881 r5914  
    154154
    155155        $link = bbp_get_topic_freshness_link( $t );
    156         $this->assertSame( '<a href="http://example.org/?topic=topic-1/#post-' . bbp_get_reply_id( $r3 ) . '" title="Reply To: ' . bbp_get_topic_title( $t ) . '">14 hours ago</a>', $link );
     156        $this->assertSame( '<a href="http://' . WP_TESTS_DOMAIN . '/?topic=topic-1/#post-' . bbp_get_reply_id( $r3 ) . '" title="Reply To: ' . bbp_get_topic_title( $t ) . '">14 hours ago</a>', $link );
    157157
    158158        // Todo: Use bbp_trash_reply() and not wp_trash_post()
Note: See TracChangeset for help on using the changeset viewer.