Make WordPress Core


Ignore:
Timestamp:
09/24/2015 09:01:10 PM (9 years ago)
Author:
johnbillion
Message:

Use WP_TESTS_DOMAIN where it should be used in tests in place of hard-coded uses of example.org.

Also corrects a test value in the data provider for Tests_Sanitize_Option::test_sanitize_option() which was only consequentially passing.

Fixes #34000

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/term/getEditTermLink.php

    r32954 r34519  
    1818
    1919        $actual = get_edit_term_link( $term1, 'wptests_tax' );
    20         $expected = 'http://example.org/wp-admin/edit-tags.php?action=edit&taxonomy=wptests_tax&tag_ID=' . $term1 . '&post_type=post';
     20        $expected = 'http://' . WP_TESTS_DOMAIN . '/wp-admin/edit-tags.php?action=edit&taxonomy=wptests_tax&tag_ID=' . $term1 . '&post_type=post';
    2121        $this->assertEquals( $expected, $actual );
    2222    }
Note: See TracChangeset for help on using the changeset viewer.