Taxonomy: Fix unit tests after [36308].

See #34988.

git-svn-id: https://develop.svn.wordpress.org/trunk@36309 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Pascal Birchler 2016-01-15 09:12:18 +00:00
parent 2241519865
commit 44db9bccf4
2 changed files with 2 additions and 2 deletions

View File

@ -991,7 +991,7 @@ class Tests_Post extends WP_UnitTestCase {
$term = reset( $terms );
foreach ( $matches[1] as $url ) {
$this->assertContains( 'tag_ID=' . $term->term_id, $url );
$this->assertContains( 'term_id=' . $term->term_id, $url );
$this->assertContains( 'post_type=new_post_type', $url );
}
}

View File

@ -17,7 +17,7 @@ class Tests_Term_GetEditTermLink extends WP_UnitTestCase {
) );
$actual = get_edit_term_link( $term1, 'wptests_tax' );
$expected = 'http://' . WP_TESTS_DOMAIN . '/wp-admin/edit-tags.php?action=edit&taxonomy=wptests_tax&tag_ID=' . $term1 . '&post_type=post';
$expected = 'http://' . WP_TESTS_DOMAIN . '/wp-admin/term.php?taxonomy=wptests_tax&term_id=' . $term1 . '&post_type=post';
$this->assertEquals( $expected, $actual );
}