WordPress.org

Make WordPress Core

Changeset 36309


Ignore:
Timestamp:
01/15/2016 09:12:18 AM (4 years ago)
Author:
swissspidy
Message:

Taxonomy: Fix unit tests after [36308].

See #34988.

Location:
trunk/tests/phpunit/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post.php

    r36094 r36309  
    992992
    993993        foreach ( $matches[1] as $url ) {
    994             $this->assertContains( 'tag_ID=' . $term->term_id, $url );
     994            $this->assertContains( 'term_id=' . $term->term_id, $url );
    995995            $this->assertContains( 'post_type=new_post_type', $url );
    996996        }
  • trunk/tests/phpunit/tests/term/getEditTermLink.php

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